C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Cell Cells.ICellVirtual
Empty CellContext
Grid GridVirtual
Position Position

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

Метод Описание
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

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

Метод Описание
CellContext ( ) : System

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

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

Constructor
public CellContext ( GridVirtual pGridVirtual, Position pPosition ) : System
pGridVirtual GridVirtual
pPosition Position
Результат System

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

Constructor
public CellContext ( GridVirtual pGridVirtual, Position pPosition, Cells pCell ) : System
pGridVirtual GridVirtual
pPosition Position
pCell Cells
Результат System

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

Terminate the edit operation.
public EndEdit ( bool cancel ) : bool
cancel bool If true undo all the changes
Результат bool

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

public Equals ( CellContext other ) : bool
other CellContext
Результат bool

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

GetHashCode
public GetHashCode ( ) : int
Результат int

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

Invalidate this cell
public Invalidate ( ) : void
Результат void

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

True if this cell is currently in edit state, otherwise false.
public IsEditing ( ) : bool
Результат bool

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

Returns true if the current struct is empty
public IsEmpty ( ) : bool
Результат bool

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

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.
Результат System.Drawing.Size

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

Start the edit operation with the current editor specified in the Model property.
public StartEdit ( ) : void
Результат void

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

public ToString ( ) : string
Результат string

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

Описание свойств

Cell публичное свойство

public Cells.ICellVirtual Cell
Результат Cells.ICellVirtual

Empty публичное статическое свойство

An empty CellContext instance.
public static CellContext,SourceGrid Empty
Результат CellContext

Grid публичное свойство

public GridVirtual,SourceGrid Grid
Результат GridVirtual

Position публичное свойство

public Position,SourceGrid Position
Результат Position