C# 클래스 ZForge.Controls.XPTable.Models.TableModel

상속: System.ComponentModel.Component
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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