C# Class SourceGrid.CellContext

Structure that represents a logical cell, composed by a ICellVirtual, a Position and a GridVirtual. This is an important structure used to manipulate the cell object, both virtual and real.
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Méthodes publiques

Свойство Type Description
Cell Cells.ICellVirtual
Empty CellContext
Grid GridVirtual
Position Position

Méthodes publiques

Méthode Description
CellContext ( GridVirtual pGridVirtual, Position pPosition ) : System

Constructor

CellContext ( GridVirtual pGridVirtual, Position pPosition, Cells pCell ) : System

Constructor

EndEdit ( bool cancel ) : bool

Terminate the edit operation.

Equals ( CellContext other ) : bool

Equals ( object obj ) : bool

GetHashCode ( ) : int

GetHashCode

Invalidate ( ) : void

Invalidate this cell

IsEditing ( ) : bool

True if this cell is currently in edit state, otherwise false.

IsEmpty ( ) : bool

Returns true if the current struct is empty

Measure ( System maxLayoutArea ) : System.Drawing.Size

If the cell is not linked to a grid the result is not accurate (Font can be null). Call InternalGetRequiredSize with RowSpan and ColSpan = 1.

StartEdit ( ) : void

Start the edit operation with the current editor specified in the Model property.

ToString ( ) : string

operator ( ) : bool

Private Methods

Méthode Description
CellContext ( ) : System

Method Details

CellContext() public méthode

Constructor
public CellContext ( GridVirtual pGridVirtual, Position pPosition ) : System
pGridVirtual GridVirtual
pPosition Position
Résultat System

CellContext() public méthode

Constructor
public CellContext ( GridVirtual pGridVirtual, Position pPosition, Cells pCell ) : System
pGridVirtual GridVirtual
pPosition Position
pCell Cells
Résultat System

EndEdit() public méthode

Terminate the edit operation.
public EndEdit ( bool cancel ) : bool
cancel bool If true undo all the changes
Résultat bool

Equals() public méthode

public Equals ( CellContext other ) : bool
other CellContext
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

GetHashCode
public GetHashCode ( ) : int
Résultat int

Invalidate() public méthode

Invalidate this cell
public Invalidate ( ) : void
Résultat void

IsEditing() public méthode

True if this cell is currently in edit state, otherwise false.
public IsEditing ( ) : bool
Résultat bool

IsEmpty() public méthode

Returns true if the current struct is empty
public IsEmpty ( ) : bool
Résultat bool

Measure() public méthode

If the cell is not linked to a grid the result is not accurate (Font can be null). Call InternalGetRequiredSize with RowSpan and ColSpan = 1.
public Measure ( System maxLayoutArea ) : System.Drawing.Size
maxLayoutArea System SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.
Résultat System.Drawing.Size

StartEdit() public méthode

Start the edit operation with the current editor specified in the Model property.
public StartEdit ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

Cell public_oe property

public Cells.ICellVirtual Cell
Résultat Cells.ICellVirtual

Empty public_oe static_oe property

An empty CellContext instance.
public static CellContext,SourceGrid Empty
Résultat CellContext

Grid public_oe property

public GridVirtual,SourceGrid Grid
Résultat GridVirtual

Position public_oe property

public Position,SourceGrid Position
Résultat Position