Class GridBordersInfo
Represents the class that provides a DataGridStyleInfoSubObject object for borders in a cell. Each border side of the cell can be configured individually with a GridBorder value. Border sides that have not been initialized will inherit default values from a base style.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Styles
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridBordersInfo : DataGridStyleInfoSubObject, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
GridBordersInfo()
Initializes a new instance of the GridBordersInfo class.
Declaration
public GridBordersInfo()
GridBordersInfo(StyleInfoSubObjectIdentity)
Initializes a new instance of the GridBordersInfo class and associates it with an existing DataGridStyleInfoSubObjectIdentity instances.
Declaration
public GridBordersInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A DataGridStyleInfoSubObjectIdentity that holds the identity for this GridBordersInfo. |
GridBordersInfo(StyleInfoSubObjectIdentity, GridBordersInfoStore)
Initializes a new instance of the GridBordersInfo class and associates it with an existing DataGridStyleInfoSubObjectIdentity and GridBordersInfoStore
Declaration
public GridBordersInfo(StyleInfoSubObjectIdentity identity, GridBordersInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A DataGridStyleInfoSubObjectIdentity that holds the identity for this GridBordersInfo |
GridBordersInfoStore | store | A GridBordersInfoStore that holds data for this GridBordersInfo. All changes in this style object will saved in the GridBordersInfoStore object. |
Properties
All
Sets all four border sides with one command.
Declaration
public GridBorder All { set; }
Property Value
Type |
---|
GridBorder |
Bottom
Gets or sets the value of bottom border.
Declaration
public GridBorder Bottom { get; set; }
Property Value
Type |
---|
GridBorder |
Default
Gets the default value of the GridBordersInfo to be used with a default style.
Declaration
public static GridBordersInfo Default { get; }
Property Value
Type |
---|
GridBordersInfo |
Remarks
The Default of the CellStyleInfo class will return the default border info that this method generates through its overridden version of GetDefaultStyle().
HasBottom
Gets a value indicating whether the bottom border has been initialized.
Declaration
public bool HasBottom { get; }
Property Value
Type |
---|
System.Boolean |
HasLeft
Gets a value indicating whether the left border has been initialized.
Declaration
public bool HasLeft { get; }
Property Value
Type |
---|
System.Boolean |
HasRight
Gets a value indicating whether the right border has been initialized.
Declaration
public bool HasRight { get; }
Property Value
Type |
---|
System.Boolean |
HasTop
Gets a value indicating whether the top border has been initialized.
Declaration
public bool HasTop { get; }
Property Value
Type |
---|
System.Boolean |
Item[GridBorderSide]
Gets or sets the value of the GridBorder for the specified GridBorderSide
Declaration
public GridBorder this[GridBorderSide side] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
GridBorderSide | side | Holds the identity of GridBorderSide |
Property Value
Type | Description |
---|---|
GridBorder | The GridBorder. |
Left
Gets or sets the value of left border.
Declaration
public GridBorder Left { get; set; }
Property Value
Type |
---|
GridBorder |
Right
Gets or sets the value of right border.
Declaration
public GridBorder Right { get; set; }
Property Value
Type |
---|
GridBorder |
Top
Gets or sets the value of top border.
Declaration
public GridBorder Top { get; set; }
Property Value
Type |
---|
GridBorder |
Methods
GetDefaultStyle()
Overrides and returns the Default
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | A GridBordersInfo object with default values. |
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 | The copy of the current object. |