C# Class XPTable.Models.TableModel

Inheritance: System.ComponentModel.Component
Afficher le fichier Open project: binaryage/xrefresh 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

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

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 ( 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

Méthode 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 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 ( XPTable.Events.TableModelEventArgs e ) : void
e 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 ( XPTable.Events.TableModelEventArgs e ) : void
e XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
Résultat void

OnSelectionChanged() protected méthode

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

RowIndexAt() public méthode

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