C# 클래스 SourceGrid.Grid

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

Private Properties

프로퍼티 타입 설명
DirectGetCell Cells.ICell
DirectSetCell void
InsertCell void
RemoveCell void

공개 메소드들

메소드 설명
GetCell ( int p_iRow, int p_iCol ) : Cells.ICellVirtual

Return the Cell at the specified Row and Col position.

Grid ( ) : System

Constructor

InvalidateCell ( Cells p_Cell ) : void

Force a redraw of the specified cell

InvalidateCell ( Position p_Position ) : void

Force a cell to redraw. If Redraw is set to false this function has no effects. If ColSpan or RowSpan is greater than 0 this function invalidate the complete range with InvalidateRange

PositionToCellRange ( Position pPosition ) : Range

This method converts a Position to the real range of the cell. This is usefull when RowSpan or ColumnSpan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0-0,1 and if you call this method with 0,1 return again 0,0-0,1.

Redim ( int p_Rows, int p_Cols ) : void

Set the number of columns and rows

SetCell ( Position p_Position, Cells p_Cell ) : void

Set the specified cell int he specified position. This method calls SetCell(int p_iRow, int p_iCol, Cells.ICellVirtual p_Cell)

SetCell ( int p_iRow, int p_iCol, Cells p_Cell ) : void

Set the specified cell int he specified position. Abstract method of the GridVirtual control

this ( int row, int col ) : Cells.ICell

Returns or set a cell at the specified row and col. If you get a ICell position occupied by a row/col span cell, and EnableRowColSpan is true, this method returns the cell with Row/Col span.

보호된 메소드들

메소드 설명
CreateColumnsObject ( ) : SourceGrid.ColumnsBase

Method used to create the columns object, in this class of type ColumnInfoCollection.

CreateRowsObject ( ) : SourceGrid.RowsBase

Method used to create the rows object, in this class of type RowInfoCollection.

OnSortingRangeRows ( SortRangeRowsEventArgs e ) : void

Fired when calling SortRangeRows method. If the range contains all the columns this method move directly the row object otherwise move each cell.

PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void

비공개 메소드들

메소드 설명
DirectGetCell ( Position position ) : Cells.ICell
DirectSetCell ( Position position, Cells cell ) : void

Array of cells

InsertCell ( int row, int col, Cells p_cell ) : void

Insert the specified cell (for best performance set Redraw property to false)

RemoveCell ( int row, int col ) : void

Remove the specified cell

메소드 상세

CreateColumnsObject() 보호된 메소드

Method used to create the columns object, in this class of type ColumnInfoCollection.
protected CreateColumnsObject ( ) : SourceGrid.ColumnsBase
리턴 SourceGrid.ColumnsBase

CreateRowsObject() 보호된 메소드

Method used to create the rows object, in this class of type RowInfoCollection.
protected CreateRowsObject ( ) : SourceGrid.RowsBase
리턴 SourceGrid.RowsBase

GetCell() 공개 메소드

Return the Cell at the specified Row and Col position.
public GetCell ( int p_iRow, int p_iCol ) : Cells.ICellVirtual
p_iRow int
p_iCol int
리턴 Cells.ICellVirtual

Grid() 공개 메소드

Constructor
public Grid ( ) : System
리턴 System

InvalidateCell() 공개 메소드

Force a redraw of the specified cell
public InvalidateCell ( Cells p_Cell ) : void
p_Cell Cells
리턴 void

InvalidateCell() 공개 메소드

Force a cell to redraw. If Redraw is set to false this function has no effects. If ColSpan or RowSpan is greater than 0 this function invalidate the complete range with InvalidateRange
public InvalidateCell ( Position p_Position ) : void
p_Position Position
리턴 void

OnSortingRangeRows() 보호된 메소드

Fired when calling SortRangeRows method. If the range contains all the columns this method move directly the row object otherwise move each cell.
protected OnSortingRangeRows ( SortRangeRowsEventArgs e ) : void
e SortRangeRowsEventArgs
리턴 void

PaintCell() 보호된 메소드

protected PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void
graphics DevAge
cellContext CellContext
drawRectangle System.Drawing.RectangleF
리턴 void

PositionToCellRange() 공개 메소드

This method converts a Position to the real range of the cell. This is usefull when RowSpan or ColumnSpan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0-0,1 and if you call this method with 0,1 return again 0,0-0,1.
public PositionToCellRange ( Position pPosition ) : Range
pPosition Position
리턴 Range

Redim() 공개 메소드

Set the number of columns and rows
public Redim ( int p_Rows, int p_Cols ) : void
p_Rows int
p_Cols int
리턴 void

SetCell() 공개 메소드

Set the specified cell int he specified position. This method calls SetCell(int p_iRow, int p_iCol, Cells.ICellVirtual p_Cell)
public SetCell ( Position p_Position, Cells p_Cell ) : void
p_Position Position
p_Cell Cells
리턴 void

SetCell() 공개 메소드

Set the specified cell int he specified position. Abstract method of the GridVirtual control
public SetCell ( int p_iRow, int p_iCol, Cells p_Cell ) : void
p_iRow int
p_iCol int
p_Cell Cells
리턴 void

this() 공개 메소드

Returns or set a cell at the specified row and col. If you get a ICell position occupied by a row/col span cell, and EnableRowColSpan is true, this method returns the cell with Row/Col span.
public this ( int row, int col ) : Cells.ICell
row int
col int
리턴 Cells.ICell