Class GridStyleInfoIdentity
Identity is the reference back to the cell the style belongs to.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridStyleInfoIdentity : StyleInfoIdentityBase, IDisposable
Remarks
GridStyleInfo will ask for base styles through GridStyleInfoIdentity.GetBaseStyles when the user accesses a property that is not initialized in the style. GridStyleInfoIdentity also ensures that changes are made permanent in GridData.
Constructors
GridStyleInfoIdentity(GridStyleInfoIdentity)
Initializes a new GridStyleInfoIdentity and copies its data from an existing object.
Declaration
protected GridStyleInfoIdentity(GridStyleInfoIdentity other)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfoIdentity | other | The existing object to copy data from. |
GridStyleInfoIdentity(GridVolatileCellStyles, RowColumnIndex)
Initializes a new GridStyleInfoIdentity with a reference to
Declaration
public GridStyleInfoIdentity(GridVolatileCellStyles data, RowColumnIndex pos)
Parameters
Type | Name | Description |
---|---|---|
GridVolatileCellStyles | data | A reference to |
RowColumnIndex | pos | Cell coordinates. |
GridStyleInfoIdentity(GridVolatileCellStyles, RowColumnIndex, Boolean)
Initializes a new GridStyleInfoIdentity with a reference to
Declaration
public GridStyleInfoIdentity(GridVolatileCellStyles data, RowColumnIndex pos, bool offLine)
Parameters
Type | Name | Description |
---|---|---|
GridVolatileCellStyles | data | A reference to |
RowColumnIndex | pos | Cell coordinates. |
System.Boolean | offLine | True if changes in this style object should not be stored in the associated |
GridStyleInfoIdentity(GridVolatileCellStyles, Int32, Int32)
Initializes a new GridStyleInfoIdentity with a reference to
Declaration
public GridStyleInfoIdentity(GridVolatileCellStyles data, int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
GridVolatileCellStyles | data | A reference to |
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
GridStyleInfoIdentity(GridVolatileCellStyles, Int32, Int32, Boolean)
Initializes a new GridStyleInfoIdentity with a reference to
Declaration
public GridStyleInfoIdentity(GridVolatileCellStyles data, int rowIndex, int colIndex, bool offLine)
Parameters
Type | Name | Description |
---|---|---|
GridVolatileCellStyles | data | A reference to |
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
System.Boolean | offLine | True if changes in this style object should not be stored in the associated |
Properties
CellRowColumnIndex
The cell coordinates.
Declaration
public RowColumnIndex CellRowColumnIndex { get; }
Property Value
Type |
---|
RowColumnIndex |
ColumnIndex
The column index.
Declaration
public int ColumnIndex { get; }
Property Value
Type |
---|
System.Int32 |
Data
Reference to
Declaration
public GridVolatileCellStyles Data { get; }
Property Value
Type |
---|
GridVolatileCellStyles |
GridModel
Returns the grid model.
Declaration
public GridModel GridModel { get; }
Property Value
Type |
---|
GridModel |
OffLine
True if changes in this style object should not be stored in the associated
Declaration
public virtual bool OffLine { get; }
Property Value
Type |
---|
System.Boolean |
RowIndex
The row index.
Declaration
public int RowIndex { get; }
Property Value
Type |
---|
System.Int32 |
Methods
Dispose()
Releases all the resource used by this component.
Declaration
public override void Dispose()
Overrides
Finalize()
Removes the associated cell cache object from the volatile data store.
Declaration
protected override void Finalize()
GetBaseStyles(IStyleInfo)
Overriden. Returns base styles from
Declaration
public override IStyleInfo[] GetBaseStyles(IStyleInfo thisStyleInfo)
Parameters
Type | Name | Description |
---|---|---|
IStyleInfo | thisStyleInfo | A reference to a IStyleInfo. |
Returns
Type | Description |
---|---|
IStyleInfo[] | An array of base styles. |
Overrides
LookupCellModel(String)
Returns a GridCellModelBase for the specified id / cell type name.
Declaration
public virtual GridCellModelBase LookupCellModel(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Cell type name. |
Returns
Type | Description |
---|---|
GridCellModelBase | The GridCellModelBase for the given id. |
Remarks
Calls
MakeOfflineIdentity()
Creates a new GridStyleInfoIdentity and copies its identity information from the current object. The new
instance will be detached from
Declaration
public GridStyleInfoIdentity MakeOfflineIdentity()
Returns
Type | Description |
---|---|
GridStyleInfoIdentity | A new GridStyleInfoIdentity instance. |
Remarks
Lets a style object load base styles and default values but disables saving changes back to the grid. (see OnStyleChanged below)
OnStyleChanged(StyleInfoBase, StyleInfoProperty)
Overridden. If the style is not offline, saves its changes in the
Declaration
public override void OnStyleChanged(StyleInfoBase style, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoBase | style | A reference to the GridStyleInfo object. |
StyleInfoProperty | sip | The StyleInfoProperty that identifies the changed style property. |
Overrides
ToString()
Returns a string representation of the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String equivalent of the current object. |
UpdateCellRowColumnIndex(RowColumnIndex)
Updates the cell row column index.
Declaration
public void UpdateCellRowColumnIndex(RowColumnIndex cellRowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | The RowColumnIndex. |