Class GridCellStyleInfo
Represents the class to define the style for GridControl control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridCellStyleInfo : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
GridCellStyleInfo()
It contains the value of the GridCellStyleInfo property.
Declaration
public GridCellStyleInfo()
GridCellStyleInfo(StyleInfoSubObjectIdentity)
Initializes a new instance of the GridCellStyleInfo class.
Declaration
public GridCellStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoSubObjectIdentity that holds the identity for this GridCellStyleInfoStore. |
GridCellStyleInfo(StyleInfoSubObjectIdentity, StyleInfoStore)
Initializes a new instance of the GridCellStyleInfo class.
Declaration
public GridCellStyleInfo(StyleInfoSubObjectIdentity identity, StyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoSubObjectIdentity that holds the identity for this GridCellStyleInfoStore. |
StyleInfoStore | store | The store. |
Properties
BackColor
Gets or sets the cell background color.
Declaration
[ThemeStudio]
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DefaultStyle
Gets the default values of GridCellStyleInfo instance.
Declaration
public static GridCellStyleInfo DefaultStyle { get; }
Property Value
Type |
---|
GridCellStyleInfo |
Font
Gets or sets the System.Drawing.Font value of the cells.
Declaration
[ThemeStudio]
public Font Font { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
TextColor
Gets or sets the fore color of the cell text.
Declaration
[ThemeStudio]
public Color TextColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
CreateSubObjectIdentity(StyleInfoProperty)
Overridden to create a product-specific identity object for the sub object.
Declaration
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoProperty | sip | StyleInfoProperty descriptor for this sub object. |
Returns
Type | Description |
---|---|
StyleInfoSubObjectIdentity | Identity for the sub object. |
Overrides
GetDefaultStyle()
Gets the default style value of the GridCellStyleInfo class.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Returns the default style value. |