Class SelectionStyleInfo
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 SelectionStyleInfo : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
SelectionStyleInfo()
Initializes a new instance of the SelectionStyleInfo class.
Declaration
public SelectionStyleInfo()
SelectionStyleInfo(StyleInfoSubObjectIdentity)
Initializes a new instance of the SelectionStyleInfo class.
Declaration
public SelectionStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity |
SelectionStyleInfo(StyleInfoSubObjectIdentity, SelectionStyleInfoStore)
Initializes a new instance of the SelectionStyleInfo class.
Declaration
public SelectionStyleInfo(StyleInfoSubObjectIdentity identity, SelectionStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | |
SelectionStyleInfoStore | store | The SelectionStyleInfo. |
SelectionStyleInfo(SelectionStyleInfo)
Initializes a new instance of the SelectionStyleInfo class.
Declaration
public SelectionStyleInfo(SelectionStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
SelectionStyleInfo | style | The SelectionStyleInfo that need to be initialized. |
SelectionStyleInfo(SelectionStyleInfoStore)
Initializes a new instance of the SelectionStyleInfo class.
Declaration
public SelectionStyleInfo(SelectionStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
SelectionStyleInfoStore | store |
Fields
Empty
Maintains the default style of the selection to read.
Declaration
public static readonly SelectionStyleInfo Empty
Field Value
Type |
---|
SelectionStyleInfo |
Properties
BackColor
Gets or sets the back color of the selection.
Declaration
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Remarks
Default
Gets the default size of the SelectionStyleInfo.
Declaration
public static SelectionStyleInfo Default { get; }
Property Value
Type |
---|
SelectionStyleInfo |
HasInterior
Gets a value indicating whether the
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 selection.
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 SelectionStyleInfoStore object that holds all the data for this style object.
Declaration
public SelectionStyleInfoStore Store { get; }
Property Value
Type |
---|
SelectionStyleInfoStore |
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 selection.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Returns the default style of the selection. |
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. |