Class GridTableCellStyleInfo
Lets you control almost any aspect of the appearance of the grouping grid like cell backcolor, font, or the cell type. Objects of this class are accessible through the GridTableCellAppearance class, e.g. the AnyCell property.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridTableCellStyleInfo : GridStyleInfo, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable
Remarks
The GridTableCellAppearance class stores GridTableCellStyleInfo information for all cell elements in a grouping grid. GridTableCellAppearance has an inheritance mechanism that allows child elements to inherit default settings from parent elements. GridTableCellAppearance lets you control almost any aspect of the appearance of the grouping grid like cell backcolor, font or the cell type.
GridTableCellAppearance supports both inheritance of style properties from parent elements and also inheritance of style settings within cell elements of one appearance object.
Inheritance of style properties is defined by the GridTableCellStyleInfoIdentity object. It has a GetBaseStyles(IStyleInfo) method that returns the GridStyleInfo objects that form a inheritance chain. Check the GetBaseStyleNames() method to get a string/debug information about the inheritance chain for a specific element. Also, the designer will show this debug information about inheritance chain in a tooltip when you hover the mouse over a cell within the "Preview and Edit" window.
Constructors
GridTableCellStyleInfo()
Initializes a new style object.
Declaration
public GridTableCellStyleInfo()
GridTableCellStyleInfo(StyleInfoIdentityBase)
Initializes a new style object and associates it with an existing GridTableCellStyleInfoIdentity.
Declaration
public GridTableCellStyleInfo(StyleInfoIdentityBase identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoIdentityBase | identity | A GridTableCellStyleInfoIdentity that holds the identity for this GridTableCellStyleInfo. |
GridTableCellStyleInfo(StyleInfoIdentityBase, GridStyleInfoStore)
Initializes a new style object and associates it with an existing GridTableCellStyleInfoIdentity.
Declaration
public GridTableCellStyleInfo(StyleInfoIdentityBase identity, GridStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoIdentityBase | identity | A GridTableCellStyleInfoIdentity that holds the identity for this GridTableCellStyleInfo. |
GridStyleInfoStore | store | A GridStyleInfoStore that holds data for this GridTableCellStyleInfo. All changes in this style object will saved in the GridStyleInfoStore object. |
GridTableCellStyleInfo(GridStyleInfoStore)
Initializes a new style object and associates it with an existing GridStyleInfoStore.
Declaration
public GridTableCellStyleInfo(GridStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfoStore | store | A GridStyleInfoStore that holds data for this GridTableCellStyleInfo. All changes in this style object will saved in the GridStyleInfoStore object. |
GridTableCellStyleInfo(GridTableCellStyleInfo)
Initializes a new style object and copies all data from an existing style object.
Declaration
public GridTableCellStyleInfo(GridTableCellStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridTableCellStyleInfo | style | The style object that contains the original data. |
Fields
Empty
An empty style object.
Declaration
public static readonly GridTableCellStyleInfo Empty
Field Value
Type |
---|
GridTableCellStyleInfo |
Properties
BaseStyle
Specifies the BaseStyle for this style instance with default values for properties that are not initialized for this style object.
Declaration
public string BaseStyle { get; set; }
Property Value
Type |
---|
System.String |
CellType
Contains cell type information of a cell.
Declaration
public string CellType { get; set; }
Property Value
Type |
---|
System.String |
GroupingGridProvider
Gets the value of the grouping grid UIA provider
Declaration
public GroupingGridCellUIAProvider GroupingGridProvider { get; }
Property Value
Type |
---|
GroupingGridCellUIAProvider |
IsTableCell
Checks whether this style object has a GridTableCellStyleInfoIdentity attached.
Declaration
public bool IsTableCell { get; }
Property Value
Type |
---|
System.Boolean |
TableCellIdentity
Returns the GridTableCellStyleInfoIdentity object with Identity information about this style object.
Declaration
public GridTableCellStyleInfoIdentity TableCellIdentity { get; }
Property Value
Type |
---|
GridTableCellStyleInfoIdentity |
Methods
GetTableCellIdentity(GridStyleInfo)
Gets the GridTableCellStyleInfoIdentity for a style, checks also the InnerIdentity of the Identity.
Declaration
public static GridTableCellStyleInfoIdentity GetTableCellIdentity(GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | The style object. |
Returns
Type | Description |
---|---|
GridTableCellStyleInfoIdentity | The TableCellIdentity if found; NULL otherwise. |
OnStyleChanged(StyleInfoProperty)
Declaration
protected override void OnStyleChanged(StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoProperty | sip |
Overrides
ResetBaseStyle()
Resets BaseStyle.
Declaration
public void ResetBaseStyle()
ResetCellType()
Resets CellType.
Declaration
public void ResetCellType()