Class ButtonCellStyleInfo
Represents the class that defines the style information for the CellButton.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Styles
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class ButtonCellStyleInfo : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
ButtonCellStyleInfo()
Initializes a new instance of the ButtonCellStyleInfo class.
Declaration
public ButtonCellStyleInfo()
ButtonCellStyleInfo(StyleInfoSubObjectIdentity)
Initializes a new instance of the ButtonCellStyleInfo class.
Declaration
public ButtonCellStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity |
ButtonCellStyleInfo(StyleInfoSubObjectIdentity, ButtonStyleInfoStore)
Initializes a new instance of the ButtonCellStyleInfo class and associates it with an existing StyleInfoStore.
Declaration
public ButtonCellStyleInfo(StyleInfoSubObjectIdentity identity, ButtonStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoSubObjectIdentity that holds the identity for this StyleInfoBase. |
ButtonStyleInfoStore | store | A StyleInfoStore that holds data for this object. All changes in this style object will be saved in the StyleInfoStore object. |
Properties
BackColor
Gets or sets the back color of the CellButton control.
Declaration
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BorderColor
Gets or sets the border of the CellButton control.
Declaration
public Pen BorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Pen |
Default
Gets the default style value for the
Declaration
public static ButtonCellStyleInfo Default { get; }
Property Value
Type |
---|
ButtonCellStyleInfo |
DisabledBackColor
Gets or sets the back color in disabled state of the CellButton control.
Declaration
public Color DisabledBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DisabledBorderColor
Gets or sets the border value for disabled state of the CellButton control.
Declaration
public Pen DisabledBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Pen |
DisabledTextColor
Gets or sets the fore color value for disabled state of the CellButton control.
Declaration
public Color DisabledTextColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Enabled
Gets or sets a value indicating whether the CellButton is enabled or nor.
Declaration
public bool Enabled { get; set; }
Property Value
Type |
---|
System.Boolean |
HoverBackColor
Gets or sets the back color for mouse hover state of the CellButton control.
Declaration
public Color HoverBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HoverBorderColor
Gets or sets the border value for hover state of the CellButton control.
Declaration
public Pen HoverBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Pen |
HoverTextColor
Gets or sets the fore color value for hover state of the CellButton control.
Declaration
public Color HoverTextColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Padding
Gets or sets the Padding value of the CellButton control.
Declaration
public Padding Padding { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Padding |
PressedBackColor
Gets or sets the back color of the CellButton control in pressed state.
Declaration
public Color PressedBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
PressedBorderColor
Gets or sets the border value for pressed state of the CellButton control.
Declaration
public Pen PressedBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Pen |
PressedTextColor
Gets or sets the fore color value for pressed state of the CellButton control.
Declaration
public Color PressedTextColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Store
Gets the ButtonStyleInfoStore object that holds all the data for his style object.
Declaration
public ButtonStyleInfoStore Store { get; }
Property Value
Type |
---|
ButtonStyleInfoStore |
TextColor
Gets or sets the fore color value of the CellButton control.
Declaration
public Color TextColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
GetDefaultStyle()
Gets the default style value of the ButtonCellStyleInfo class.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Returns the default style value. |
Overrides
MakeCopy(StyleInfoBase, StyleInfoProperty)
Makes an exact copy of the current object.
Declaration
public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoBase | newOwner | The new owner style object for the copied object. |
StyleInfoProperty | sip | The identifier for this object. |
Returns
Type | Description |
---|---|
IStyleInfoSubObject | A copy of the current object registered with the new owner style object. |