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

Inheritance: System.ComponentModel.Component
Mostrar archivo Open project: zhuangyy/Motion Class Usage Examples

Public Properties

Property Type Description
DefaultRowHeight int
MaximumRowHeight int
MinimumRowHeight int

Private Properties

Property Type Description
Init void
OnCellAdded void
OnCellPropertyChanged void
OnCellRemoved void
OnRowPropertyChanged void
RowIndexAtExact int
ShouldSerializeRowHeight bool
UpdateRowIndicies void
this Cell
this Cell

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

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

OnRowAdded() protected method

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

OnRowHeightChanged() protected method

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

OnRowRemoved() protected method

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

OnSelectionChanged() protected method

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

RowIndexAt() public method

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

TableModel() public method

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

TableModel() public method

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
return System

Property Details

DefaultRowHeight public_oe static_oe property

The default height of a Row
public static int DefaultRowHeight
return int

MaximumRowHeight public_oe static_oe property

The maximum height of a Row
public static int MaximumRowHeight
return int

MinimumRowHeight public_oe static_oe property

The minimum height of a Row
public static int MinimumRowHeight
return int