C# Class Xwt.ListBox

Inheritance: Xwt.Widget
Show file Open project: TheBrainTech/xwt Class Usage Examples

Private Properties

Property Type Description
HandleModelChanged void
OnCellChanged void
OnRowActivated void
OnSelectionChanged void

Public Methods

Method Description
GetRowAtPosition ( Point p ) : int

Returns the row at the given widget coordinates

GetRowAtPosition ( double x, double y ) : int

Returns the row at the given widget coordinates

GetRowBounds ( int row, bool includeMargin ) : Xwt.Rectangle

Gets the bounds of the given row.

ListBox ( ) : System
ScrollToRow ( int row ) : void
SelectAll ( ) : void

Selects all rows

SelectRow ( int row ) : void

Selects a row.

In single selection mode, the row will be selected and the previously selected row will be deselected. In multiple selection mode, the row will be added to the set of selected rows.

UnselectAll ( ) : void

Clears the selection

UnselectRow ( int row ) : void

Unselects a row.

Protected Methods

Method Description
CreateBackendHost ( ) : BackendHost

Private Methods

Method Description
HandleModelChanged ( object sender, Xwt.ListRowEventArgs e ) : void
OnCellChanged ( ) : void
OnRowActivated ( Xwt.ListViewRowEventArgs a ) : void
OnSelectionChanged ( EventArgs args ) : void

Method Details

CreateBackendHost() protected method

protected CreateBackendHost ( ) : BackendHost
return BackendHost

GetRowAtPosition() public method

Returns the row at the given widget coordinates
public GetRowAtPosition ( Point p ) : int
p Point A position, in widget coordinates
return int

GetRowAtPosition() public method

Returns the row at the given widget coordinates
public GetRowAtPosition ( double x, double y ) : int
x double The x coordinate.
y double The y coordinate.
return int

GetRowBounds() public method

Gets the bounds of the given row.
public GetRowBounds ( int row, bool includeMargin ) : Xwt.Rectangle
row int The row index.
includeMargin bool If set to true include margin (the background of the row).
return Xwt.Rectangle

ListBox() public method

public ListBox ( ) : System
return System

ScrollToRow() public method

public ScrollToRow ( int row ) : void
row int
return void

SelectAll() public method

Selects all rows
public SelectAll ( ) : void
return void

SelectRow() public method

Selects a row.
In single selection mode, the row will be selected and the previously selected row will be deselected. In multiple selection mode, the row will be added to the set of selected rows.
public SelectRow ( int row ) : void
row int /// a row. ///
return void

UnselectAll() public method

Clears the selection
public UnselectAll ( ) : void
return void

UnselectRow() public method

Unselects a row.
public UnselectRow ( int row ) : void
row int /// A row ///
return void