Description
A Border object represents a border around a cell or area of cells.
C#
vb.net
Remarks
To set a border around a single cell, set the Border.Color and Border.Style of a Border
object retrieved through the cell's Style:
You can also define part of a cell's border using Border.Item(Border.Part):
To return a Border
object for an Area, use Area.BorderAround.
Examples
C#
vb.net
Properties
Name |
Description |
---|---|
Sets or returns the color of the border, as an ExcelWriter
Color object. If multiple colors were assigned to border parts, Color will return the color of the top border. |
|
Sets or returns the border's line style. |
Indexers
Name |
Description |
---|---|
Returns a BorderPart object representing the specified part of the border. This is the indexer for the Border object. |