Class GridTableCellViewStyleInfoIdentity
Represents a class that provides identity information for a temporary GridTableCellStyleInfo object that is created by the GetTableViewStyleInfo(Int32, Int32) of a GridTableControl just before a cell is drawn and disposed afterwards.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridTableCellViewStyleInfoIdentity : GridTableCellStyleInfoIdentity, IDisposable, IGridModelSource
Remarks
Changes made to style properties that have a GridTableCellViewStyleInfoIdentity object are not permanent. When the object is disposed, any changes are discarded. This has the benefit that you can change temporary the style settings for drawing the cell.
Constructors
GridTableCellViewStyleInfoIdentity(GridTableCellStyleInfo, GridTableCellStyleInfoIdentity)
Initializes a new instance of the GridTableCellViewStyleInfoIdentity identity object.
Declaration
public GridTableCellViewStyleInfoIdentity(GridTableCellStyleInfo parentStyle, GridTableCellStyleInfoIdentity parentIdentity)
Parameters
Type | Name | Description |
---|---|---|
GridTableCellStyleInfo | parentStyle | The parent style object. |
GridTableCellStyleInfoIdentity | parentIdentity | The Identity object of the ParentStyle object. |
Properties
ParentIdentity
Gets or sets the Identity of the ParentStyle property.
Declaration
public GridTableCellStyleInfoIdentity ParentIdentity { get; set; }
Property Value
Type |
---|
GridTableCellStyleInfoIdentity |
ParentStyle
Gets or sets the parent style object.
Declaration
public GridTableCellStyleInfo ParentStyle { get; set; }
Property Value
Type |
---|
GridTableCellStyleInfo |
Methods
Dispose()
Overrides and manages the unwanted resources.
Declaration
public override void Dispose()
Overrides
GetBaseStyles(IStyleInfo)
Overrides and gets the BaseStyles that holds the style properties.
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 BaseStyles. |
Overrides
Remarks
Inheritance of style properties is defined by the GridTableCellStyleInfoIdentity object. It has a GetBaseStyles(IStyleInfo) method that returns the GridStyleInfo objects that form an inheritance chain. Check the GetBaseStyleNames() method to get string / debug information about the inheritance chain for a specific element. Also, the designer will show this debug information about the inheritance chain in a ToolTip when you hover the mouse over a cell within the "Preview and Edit" window.
OnStyleChanged(StyleInfoBase, StyleInfoProperty)
Triggered when the Changed event is done.
Declaration
public override void OnStyleChanged(StyleInfoBase style, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoBase | style | A StyleInfoBase instance that was changed. |
StyleInfoProperty | sip | An identity for the property to operate on. |