C# Class ZForge.Controls.XPTable.Models.TableModel

Inheritance: System.ComponentModel.Component
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultRowHeight int
MaximumRowHeight int
MinimumRowHeight int

Private Properties

Свойство Type Description
Init void
OnCellAdded void
OnCellPropertyChanged void
OnCellRemoved void
OnRowPropertyChanged void
RowIndexAtExact int
ShouldSerializeRowHeight bool
UpdateRowIndicies void
this Cell
this Cell

Méthodes publiques

Méthode Description
RowIndexAt ( int yPosition ) : int

Returns the index of the Row that lies on the specified position

TableModel ( ) : System

Initializes a new instance of the TableModel class with default settings

TableModel ( Row rows ) : System

Initializes a new instance of the TableModel class with an array of Row objects

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the TableModel and optionally releases the managed resources

OnRowAdded ( TableModelEventArgs e ) : void

Raises the RowAdded event

OnRowHeightChanged ( EventArgs e ) : void

Raises the RowHeightChanged event

OnRowRemoved ( TableModelEventArgs e ) : void

Raises the RowRemoved event

OnSelectionChanged ( SelectionEventArgs e ) : void

Raises the SelectionChanged event

Private Methods

Méthode Description
Init ( ) : void

Initialise default settings

OnCellAdded ( RowEventArgs e ) : void

Raises the CellAdded event

OnCellPropertyChanged ( CellEventArgs e ) : void

Raises the CellPropertyChanged event

OnCellRemoved ( RowEventArgs e ) : void

Raises the CellRemoved event

OnRowPropertyChanged ( RowEventArgs e ) : void

Raises the RowPropertyChanged event

RowIndexAtExact ( int yPosition ) : int

Returns the index of the Row that lies on the specified position. Found by iterating through all rows (i.e. copes with variable height rows).

ShouldSerializeRowHeight ( ) : bool

Specifies whether the RowHeight property should be serialized at design time

UpdateRowIndicies ( int start ) : void

Updates the Row's Index property so that it matches the Rows position in the RowCollection

this ( CellPos cellPos ) : Cell
this ( int row, int column ) : Cell

Method Details

Dispose() protected méthode

Releases the unmanaged resources used by the TableModel and optionally releases the managed resources
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnRowAdded() protected méthode

Raises the RowAdded event
protected OnRowAdded ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
Résultat void

OnRowHeightChanged() protected méthode

Raises the RowHeightChanged event
protected OnRowHeightChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Résultat void

OnRowRemoved() protected méthode

Raises the RowRemoved event
protected OnRowRemoved ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
Résultat void

OnSelectionChanged() protected méthode

Raises the SelectionChanged event
protected OnSelectionChanged ( SelectionEventArgs e ) : void
e ZForge.Controls.XPTable.Events.SelectionEventArgs A SelectionEventArgs that contains the event data
Résultat void

RowIndexAt() public méthode

Returns the index of the Row that lies on the specified position
public RowIndexAt ( int yPosition ) : int
yPosition int The y-coordinate to check
Résultat int

TableModel() public méthode

Initializes a new instance of the TableModel class with default settings
public TableModel ( ) : System
Résultat System

TableModel() public méthode

Initializes a new instance of the TableModel class with an array of Row objects
public TableModel ( Row rows ) : System
rows Row An array of Row objects that represent the Rows /// of the TableModel
Résultat System

Property Details

DefaultRowHeight public_oe static_oe property

The default height of a Row
public static int DefaultRowHeight
Résultat int

MaximumRowHeight public_oe static_oe property

The maximum height of a Row
public static int MaximumRowHeight
Résultat int

MinimumRowHeight public_oe static_oe property

The minimum height of a Row
public static int MinimumRowHeight
Résultat int