class
BorderCollection
Source: aspose.
Encapsulates a collection of Border objects.
Methods
getByBorderType(borderType) → Border
Gets the Border element at the specified index.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
borderType |
Number |
|
BorderType |
- Returns
-
BorderThe element at the specified index.
getDiagonalColor()
Gets or sets the com.aspose.cells.Color of Diagonal lines.
getDiagonalStyle()
Gets or sets the style of Diagonal lines. The value of the property is CellBorderType integer constant.
setColor(color)
Sets the com.aspose.cells.Color of all borders in the collection.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
color |
|
Borders' |
setDiagonalColor()
Gets or sets the com.aspose.cells.Color of Diagonal lines.
setDiagonalStyle()
Gets or sets the style of Diagonal lines. The value of the property is CellBorderType integer constant.
setStyle(style)
Sets the style of all borders of the collection.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
style |
Number |
|
CellBorderType |