C# Класс ZForge.Controls.XPTable.Models.TableModel

Наследование: System.ComponentModel.Component
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultRowHeight int
MaximumRowHeight int
MinimumRowHeight int

Private Properties

Свойство Тип Описание
Init void
OnCellAdded void
OnCellPropertyChanged void
OnCellRemoved void
OnRowPropertyChanged void
RowIndexAtExact int
ShouldSerializeRowHeight bool
UpdateRowIndicies void
this Cell
this Cell

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

Releases the unmanaged resources used by the TableModel and optionally releases the managed resources
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

OnRowAdded() защищенный Метод

Raises the RowAdded event
protected OnRowAdded ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
Результат void

OnRowHeightChanged() защищенный Метод

Raises the RowHeightChanged event
protected OnRowHeightChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnRowRemoved() защищенный Метод

Raises the RowRemoved event
protected OnRowRemoved ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
Результат void

OnSelectionChanged() защищенный Метод

Raises the SelectionChanged event
protected OnSelectionChanged ( SelectionEventArgs e ) : void
e ZForge.Controls.XPTable.Events.SelectionEventArgs A SelectionEventArgs that contains the event data
Результат void

RowIndexAt() публичный Метод

Returns the index of the Row that lies on the specified position
public RowIndexAt ( int yPosition ) : int
yPosition int The y-coordinate to check
Результат int

TableModel() публичный Метод

Initializes a new instance of the TableModel class with default settings
public TableModel ( ) : System
Результат System

TableModel() публичный Метод

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
Результат System

Описание свойств

DefaultRowHeight публичное статическое свойство

The default height of a Row
public static int DefaultRowHeight
Результат int

MaximumRowHeight публичное статическое свойство

The maximum height of a Row
public static int MaximumRowHeight
Результат int

MinimumRowHeight публичное статическое свойство

The minimum height of a Row
public static int MinimumRowHeight
Результат int