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

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

Private Properties

Свойство Тип Описание
ClearSelection void
GetRenderedCellIndex int
GetState bool
Init void
OnCellPropertyChanged void
SetState void
ShouldSerializeBackColor bool
ShouldSerializeEditable bool
ShouldSerializeEnabled bool
ShouldSerializeFont bool
ShouldSerializeForeColor bool
UpdateCellIndicies void

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

Метод Описание
Dispose ( ) : void

Releases all resources used by the Row

IsCellSelected ( int index ) : bool

Returns whether the Cell at the specified index is selected

Row ( ) : System

Initializes a new instance of the Row class with default settings

Row ( Cell cells ) : System

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

Row ( Cell cells, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Row class with an array of Cell objects and the foreground color, background color, and font of the Row

Row ( Row parent ) : System

Initializes a new instance of the Row class with default settings and a parent row. The new row is a sub row

Row ( string items ) : System

Initializes a new instance of the Row class with an array of strings representing Cells

Row ( string items, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Row class with an array of strings representing Cells and the foreground color, background color, and font of the Row

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

Метод Описание
OnCellAdded ( RowEventArgs e ) : void

Raises the CellAdded event

OnCellRemoved ( RowEventArgs e ) : void

Raises the CellRemoved event

OnPropertyChanged ( RowEventArgs e ) : void

Raises the PropertyChanged event

OnSubRowAdded ( RowEventArgs e ) : void

Raises the SubRowAdded event

OnSubRowRemoved ( RowEventArgs e ) : void

Raises the SubRowRemoved event

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

Метод Описание
ClearSelection ( ) : void

Removes the selected state from all the Cells within the Row

GetRenderedCellIndex ( int columnIndex ) : int

Returns the column that contains the cell that renders over the given column. This is only different if there is a colspan cell on this row, to the left of the given position.

GetState ( int flag ) : bool

Returns the state represented by the specified state flag

Init ( ) : void

Initialise default values

OnCellPropertyChanged ( CellEventArgs e ) : void

Raises the CellPropertyChanged event

SetState ( int flag, bool value ) : void

Sets the state represented by the specified state flag to the specified value

ShouldSerializeBackColor ( ) : bool

Specifies whether the BackColor property should be serialized at design time

ShouldSerializeEditable ( ) : bool

Specifies whether the Editable property should be serialized at design time

ShouldSerializeEnabled ( ) : bool

Specifies whether the Enabled property should be serialized at design time

ShouldSerializeFont ( ) : bool

Specifies whether the Font property should be serialized at design time

ShouldSerializeForeColor ( ) : bool

Specifies whether the ForeColor property should be serialized at design time

UpdateCellIndicies ( int start ) : void

Updates the Cell's Index property so that it matches the Cells position in the CellCollection

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

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

Releases all resources used by the Row
public Dispose ( ) : void
Результат void

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

Returns whether the Cell at the specified index is selected
public IsCellSelected ( int index ) : bool
index int The index of the Cell in the Row's Row.CellCollection
Результат bool

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

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

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

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

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

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

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

Raises the SubRowAdded event
protected OnSubRowAdded ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs
Результат void

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

Raises the SubRowRemoved event
protected OnSubRowRemoved ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs
Результат void

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

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

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

Initializes a new instance of the Row class with an array of Cell objects
public Row ( Cell cells ) : System
cells Cell An array of Cell objects that represent the Cells of the Row
Результат System

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

Initializes a new instance of the Row class with an array of Cell objects and the foreground color, background color, and font of the Row
public Row ( Cell cells, Color foreColor, Color backColor, Font font ) : System
cells Cell An array of Cell objects that represent the Cells of the Row
foreColor Color The foreground Color of the Row
backColor Color The background Color of the Row
font Font The Font used to draw the text in the Row's Cells
Результат System

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

Initializes a new instance of the Row class with default settings and a parent row. The new row is a sub row
public Row ( Row parent ) : System
parent Row
Результат System

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

Initializes a new instance of the Row class with an array of strings representing Cells
public Row ( string items ) : System
items string An array of strings that represent the Cells of /// the Row
Результат System

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

Initializes a new instance of the Row class with an array of strings representing Cells and the foreground color, background color, and font of the Row
public Row ( string items, Color foreColor, Color backColor, Font font ) : System
items string An array of strings that represent the Cells of the Row
foreColor Color The foreground Color of the Row
backColor Color The background Color of the Row
font Font The Font used to draw the text in the Row's Cells
Результат System