C# Class Xwt.ListBox

Inheritance: Xwt.Widget
Afficher le fichier Open project: TheBrainTech/xwt Class Usage Examples

Private Properties

Свойство Type Description
HandleModelChanged void
OnCellChanged void
OnRowActivated void
OnSelectionChanged void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
CreateBackendHost ( ) : BackendHost

Private Methods

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

Method Details

CreateBackendHost() protected méthode

protected CreateBackendHost ( ) : BackendHost
Résultat BackendHost

GetRowAtPosition() public méthode

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

GetRowAtPosition() public méthode

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.
Résultat int

GetRowBounds() public méthode

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).
Résultat Xwt.Rectangle

ListBox() public méthode

public ListBox ( ) : System
Résultat System

ScrollToRow() public méthode

public ScrollToRow ( int row ) : void
row int
Résultat void

SelectAll() public méthode

Selects all rows
public SelectAll ( ) : void
Résultat void

SelectRow() public méthode

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. ///
Résultat void

UnselectAll() public méthode

Clears the selection
public UnselectAll ( ) : void
Résultat void

UnselectRow() public méthode

Unselects a row.
public UnselectRow ( int row ) : void
row int /// A row ///
Résultat void