C# Class Flood.GUI.Controls.ListBox

ListBox control.
Inheritance: Flood.GUI.Controls.ScrollControl
Afficher le fichier Open project: FloodProject/flood Class Usage Examples

Méthodes publiques

Méthode Description
AddRow ( String label ) : Flood.GUI.Controls.Layout.TableRow

Adds a new row.

AddRow ( String label, String name ) : Flood.GUI.Controls.Layout.TableRow

Adds a new row.

Clear ( ) : void

Removes all rows.

ListBox ( Control parent ) : System

Initializes a new instance of the ListBox class.

RemoveRow ( int idx ) : void

Removes the specified row by index.

SelectRow ( Control control, bool clearOthers = false ) : void

Slelects the specified row.

SelectRow ( int index, bool clearOthers = false ) : void

Selects the specified row by index.

SelectRows ( String rowText, bool clearOthers = false ) : void

Selects the specified row(s) by text.

SelectRowsByRegex ( String pattern, RegexOptions regexOptions = RegexOptions.None, bool clearOthers = false ) : void

Selects the specified row(s) by regex text search.

SetColumnWidth ( int column, int width ) : void

Sets the column width (in pixels).

SizeToContents ( ) : void
UnselectAll ( ) : void

Deselects all rows.

UnselectRow ( Flood.GUI.Controls.ListBoxRow row ) : void

Unselects the specified row.

this ( int index ) : Flood.GUI.Controls.ListBoxRow

Returns specific row of the ListBox.

Méthodes protégées

Méthode Description
OnRowSelected ( Control control ) : void

Handler for the row selection event.

Render ( Skins skin ) : void

Renders the control using specified skin.

Private Methods

Méthode Description
TableResized ( Control control ) : void

Method Details

AddRow() public méthode

Adds a new row.
public AddRow ( String label ) : Flood.GUI.Controls.Layout.TableRow
label String Row text.
Résultat Flood.GUI.Controls.Layout.TableRow

AddRow() public méthode

Adds a new row.
public AddRow ( String label, String name ) : Flood.GUI.Controls.Layout.TableRow
label String Row text.
name String Internal control name.
Résultat Flood.GUI.Controls.Layout.TableRow

Clear() public méthode

Removes all rows.
public Clear ( ) : void
Résultat void

ListBox() public méthode

Initializes a new instance of the ListBox class.
public ListBox ( Control parent ) : System
parent Control Parent control.
Résultat System

OnRowSelected() protected méthode

Handler for the row selection event.
protected OnRowSelected ( Control control ) : void
control Control Event source.
Résultat void

RemoveRow() public méthode

Removes the specified row by index.
public RemoveRow ( int idx ) : void
idx int Row index.
Résultat void

Render() protected méthode

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

SelectRow() public méthode

Slelects the specified row.
public SelectRow ( Control control, bool clearOthers = false ) : void
control Control Row to select.
clearOthers bool Determines whether to deselect previously selected rows.
Résultat void

SelectRow() public méthode

Selects the specified row by index.
public SelectRow ( int index, bool clearOthers = false ) : void
index int Row to select.
clearOthers bool Determines whether to deselect previously selected rows.
Résultat void

SelectRows() public méthode

Selects the specified row(s) by text.
public SelectRows ( String rowText, bool clearOthers = false ) : void
rowText String Text to search for (exact match).
clearOthers bool Determines whether to deselect previously selected rows.
Résultat void

SelectRowsByRegex() public méthode

Selects the specified row(s) by regex text search.
public SelectRowsByRegex ( String pattern, RegexOptions regexOptions = RegexOptions.None, bool clearOthers = false ) : void
pattern String Regex pattern to search for.
regexOptions RegexOptions Regex options.
clearOthers bool Determines whether to deselect previously selected rows.
Résultat void

SetColumnWidth() public méthode

Sets the column width (in pixels).
public SetColumnWidth ( int column, int width ) : void
column int Column index.
width int Column width.
Résultat void

SizeToContents() public méthode

public SizeToContents ( ) : void
Résultat void

UnselectAll() public méthode

Deselects all rows.
public UnselectAll ( ) : void
Résultat void

UnselectRow() public méthode

Unselects the specified row.
public UnselectRow ( Flood.GUI.Controls.ListBoxRow row ) : void
row Flood.GUI.Controls.ListBoxRow Row to unselect.
Résultat void

this() public méthode

Returns specific row of the ListBox.
public this ( int index ) : Flood.GUI.Controls.ListBoxRow
index int Row index.
Résultat Flood.GUI.Controls.ListBoxRow