Class CurrentCellStyleInfo
Represents a class that contains the properties for customizing the styles of the selection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Styles
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class CurrentCellStyleInfo : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
CurrentCellStyleInfo()
Initializes a new instance of the CurrentCellStyleInfo class.
Declaration
public CurrentCellStyleInfo()
CurrentCellStyleInfo(StyleInfoSubObjectIdentity)
Initializes a new instance of the CurrentCellStyleInfo class.
Declaration
public CurrentCellStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoSubObjectIdentity | identity |
CurrentCellStyleInfo(StyleInfoSubObjectIdentity, CurrentCellStyleInfoStore)
Initializes a new instance of the CurrentCellStyleInfo class.
Declaration
public CurrentCellStyleInfo(StyleInfoSubObjectIdentity identity, CurrentCellStyleInfoStore store)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoSubObjectIdentity | identity | |
| CurrentCellStyleInfoStore | store | The CurrentCellStyleInfo. |
CurrentCellStyleInfo(CurrentCellStyleInfo)
Initializes a new instance of the CurrentCellStyleInfo class.
Declaration
public CurrentCellStyleInfo(CurrentCellStyleInfo style)
Parameters
| Type | Name | Description |
|---|---|---|
| CurrentCellStyleInfo | style | The CurrentCellStyleInfo that need to be initialized. |
CurrentCellStyleInfo(CurrentCellStyleInfoStore)
Initializes a new instance of the CurrentCellStyleInfo class.
Declaration
public CurrentCellStyleInfo(CurrentCellStyleInfoStore store)
Parameters
| Type | Name | Description |
|---|---|---|
| CurrentCellStyleInfoStore | store |
Fields
Empty
Maintains the default style of the currentcell to read.
Declaration
public static readonly CurrentCellStyleInfo Empty
Field Value
| Type |
|---|
| CurrentCellStyleInfo |
Properties
BackColor
Gets or sets the back color of the selection.
Declaration
public Color BackColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
Remarks
BorderColor
Gets or sets the border color of the selection.
Declaration
public Color BorderColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
BorderThickness
Gets or sets the border color of the selection.
Declaration
public GridBorderWeight BorderThickness { get; set; }
Property Value
| Type |
|---|
| GridBorderWeight |
Default
Gets the default size of the CurrentCellStyleInfo.
Declaration
public static CurrentCellStyleInfo Default { get; }
Property Value
| Type |
|---|
| CurrentCellStyleInfo |
HasInterior
Gets a value indicating whether the Interior property has been modified.
Declaration
public bool HasInterior { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasTextColor
Gets a value indicating whether the TextColor property has been modified.
Declaration
public bool HasTextColor { get; }
Property Value
| Type |
|---|
| System.Boolean |
Interior
Gets or sets the brush for drawing the interior of the current cell.
Declaration
public BrushInfo Interior { get; set; }
Property Value
| Type |
|---|
| BrushInfo |
Remarks
The default value is null and will be considered only if it is initialized.
Store
Gets the CurrentCellStyleInfo object that holds all the data for this style object.
Declaration
public CurrentCellStyleInfoStore Store { get; }
Property Value
| Type |
|---|
| CurrentCellStyleInfoStore |
TextColor
Gets or sets the text color of the selection.
Declaration
public Color TextColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
Methods
CreateSubObjectIdentity(StyleInfoProperty)
Overridden to create the SubObjectIdentity for the style info property.
Declaration
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoProperty | sip | The style info property that needs to create the sub objects. |
Returns
| Type | Description |
|---|---|
| StyleInfoSubObjectIdentity | Returns the DataGridStyleInfoSubObjectIdentity for the given property. |
Overrides
GetDefaultStyle()
Retrieves the default style of the current cell.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
| Type | Description |
|---|---|
| StyleInfoBase | Returns the default style of the current cell. |
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. |