C# Class SourceGrid.Grid

Inheritance: GridVirtual
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Свойство Type Description
DirectGetCell Cells.ICell
DirectSetCell void
InsertCell void
RemoveCell void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

CreateColumnsObject() protected méthode

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

CreateRowsObject() protected méthode

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

GetCell() public méthode

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
Résultat Cells.ICellVirtual

Grid() public méthode

Constructor
public Grid ( ) : System
Résultat System

InvalidateCell() public méthode

Force a redraw of the specified cell
public InvalidateCell ( Cells p_Cell ) : void
p_Cell Cells
Résultat void

InvalidateCell() public méthode

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
Résultat void

OnSortingRangeRows() protected méthode

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
Résultat void

PaintCell() protected méthode

protected PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void
graphics DevAge
cellContext CellContext
drawRectangle System.Drawing.RectangleF
Résultat void

PositionToCellRange() public méthode

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
Résultat Range

Redim() public méthode

Set the number of columns and rows
public Redim ( int p_Rows, int p_Cols ) : void
p_Rows int
p_Cols int
Résultat void

SetCell() public méthode

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
Résultat void

SetCell() public méthode

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
Résultat void

this() public méthode

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
Résultat Cells.ICell