C# Class XPTable.Models.TableModel

Inheritance: System.ComponentModel.Component
ファイルを表示 Open project: binaryage/xrefresh 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

RowIndexAt ( int yPosition, bool bvirtual ) : int
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 ( XPTable.Events.TableModelEventArgs e ) : void

Raises the RowAdded event

OnRowHeightChanged ( EventArgs e ) : void

Raises the RowHeightChanged event

OnRowRemoved ( XPTable.Events.TableModelEventArgs e ) : void

Raises the RowRemoved event

OnSelectionChanged ( XPTable.Events.SelectionEventArgs e ) : void

Raises the SelectionChanged event

Private Methods

Method Description
Init ( ) : void

Initialise default settings

OnCellAdded ( XPTable.Events.RowEventArgs e ) : void

Raises the CellAdded event

OnCellPropertyChanged ( XPTable.Events.CellEventArgs e ) : void

Raises the CellPropertyChanged event

OnCellRemoved ( XPTable.Events.RowEventArgs e ) : void

Raises the CellRemoved event

OnRowPropertyChanged ( XPTable.Events.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 ( XPTable.Models.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 ( XPTable.Events.TableModelEventArgs e ) : void
e 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 ( XPTable.Events.TableModelEventArgs e ) : void
e XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
return void

OnSelectionChanged() protected method

Raises the SelectionChanged event
protected OnSelectionChanged ( XPTable.Events.SelectionEventArgs e ) : void
e 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

RowIndexAt() public method

public RowIndexAt ( int yPosition, bool bvirtual ) : int
yPosition int
bvirtual bool
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