Skip to end of metadata
Go to start of metadata

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

Color

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.

Style

Sets or returns the border's line style.

Indexers

Name

Description

Item(Border.Part)

Returns a BorderPart object representing the specified part of the border. This is the indexer for the Border object.

Nested Classes

Name

Description

LineStyle

Use the LineStyle class to set a line style for a Border or BorderPart.

Part

Use the Part class to set a color or line style for a specific part of a border.
  • No labels