BorderCollection
Contents
[
Hide
]BorderCollection class
Encapsulates a collection of Border objects.
class BorderCollection;
Methods
Method | Description |
---|---|
get(BorderType) | Gets the Border element at the specified index. |
getDiagonalColor() | Gets or sets the System.Drawing.Color of Diagonal lines. |
setDiagonalColor(Color) | Gets or sets the System.Drawing.Color of Diagonal lines. |
getDiagonalStyle() | Gets or sets the style of Diagonal lines. |
setDiagonalStyle(CellBorderType) | Gets or sets the style of Diagonal lines. |
setColor(Color) | Sets the System.Drawing.Color of all borders in the collection. |
setStyle(CellBorderType) | Sets the style of all borders of the collection. |
get(BorderType)
Gets the Border element at the specified index.
get(borderType: BorderType) : Border;
Parameters:
Parameter | Type | Description |
---|---|---|
borderType | BorderType | The border to be retrieved. |
Returns
The element at the specified index.
getDiagonalColor()
Gets or sets the System.Drawing.Color of Diagonal lines.
getDiagonalColor() : Color;
Returns
setDiagonalColor(Color)
Gets or sets the System.Drawing.Color of Diagonal lines.
setDiagonalColor(value: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | The value to set. |
getDiagonalStyle()
Gets or sets the style of Diagonal lines.
getDiagonalStyle() : CellBorderType;
Returns
setDiagonalStyle(CellBorderType)
Gets or sets the style of Diagonal lines.
setDiagonalStyle(value: CellBorderType) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | CellBorderType | The value to set. |
setColor(Color)
Sets the System.Drawing.Color of all borders in the collection.
setColor(color: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
color | Color | Borders’ System.Drawing.Color. |
setStyle(CellBorderType)
Sets the style of all borders of the collection.
setStyle(style: CellBorderType) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
style | CellBorderType | Borders’ style |