BorderCollection

BorderCollection class

Encapsulates a collection of Border objects.

class BorderCollection;

Methods

MethodDescription
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:

ParameterTypeDescription
borderTypeBorderTypeThe 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

Color

setDiagonalColor(Color)

Gets or sets the System.Drawing.Color of Diagonal lines.

setDiagonalColor(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getDiagonalStyle()

Gets or sets the style of Diagonal lines.

getDiagonalStyle() : CellBorderType;

Returns

CellBorderType

setDiagonalStyle(CellBorderType)

Gets or sets the style of Diagonal lines.

setDiagonalStyle(value: CellBorderType) : void;

Parameters:

ParameterTypeDescription
valueCellBorderTypeThe value to set.

setColor(Color)

Sets the System.Drawing.Color of all borders in the collection.

setColor(color: Color) : void;

Parameters:

ParameterTypeDescription
colorColorBorders’ System.Drawing.Color.

setStyle(CellBorderType)

Sets the style of all borders of the collection.

setStyle(style: CellBorderType) : void;

Parameters:

ParameterTypeDescription
styleCellBorderTypeBorders’ style