BorderCollection

BorderCollection class

Encapsulates a collection of Border objects.

Properties

NameTypeDescription
DiagonalColorColorGets or sets the com.aspose.cells.Color of Diagonal lines.
DiagonalStyleintGets or sets the style of Diagonal lines. The value of the property is CellBorderType integer constant.
Item ByBorderType(int)BorderGets the Border element at the specified index.

Methods

NameDescription
setColorSets the com.aspose.cells.Color of all borders in the collection.
setStyleSets the style of all borders of the collection.

BorderCollection.DiagonalColor property

Gets or sets the com.aspose.cells.Color of Diagonal lines.

Type: Color

BorderCollection.DiagonalStyle property

Gets or sets the style of Diagonal lines. The value of the property is CellBorderType integer constant.

Type: int

BorderCollection.Item ByBorderType(int) property

Gets the Border element at the specified index.

Type: Border

setColor(color)

Sets the com.aspose.cells.Color of all borders in the collection.

ParameterTypeDescription
colorColorBorders’ com.aspose.cells.Color .

setStyle(style)

Sets the style of all borders of the collection.

ParameterTypeDescription
styleintA CellBorderType value. Borders’ style