BorderCollection
Contents
[
Hide
]BorderCollection class
Encapsulates a collection of Border objects.
Properties
| Name | Type | Description |
|---|---|---|
| DiagonalColor | Color | Gets or sets the com.aspose.cells.Color of Diagonal lines. |
| DiagonalStyle | int | Gets or sets the style of Diagonal lines. The value of the property is CellBorderType integer constant. |
| Item ByBorderType(int) | Border | Gets the Border element at the specified index. |
Methods
| Name | Description |
|---|---|
| setColor | Sets the com.aspose.cells.Color of all borders in the collection. |
| setStyle | Sets 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.
| Parameter | Type | Description |
|---|---|---|
| color | Color | Borders’ com.aspose.cells.Color . |
setStyle(style)
Sets the style of all borders of the collection.
| Parameter | Type | Description |
|---|---|---|
| style | int | A CellBorderType value. Borders’ style |