<!-- Generated by tools/SharpCell.Docs from the XML documentation comments. Do not edit; run the tool with 'generate'. -->

# CellBorder

```csharp
public sealed class CellBorder
```

Namespace `SharpCell` · package `SharpCell`

One edge of a cell's border. A record: borders compare by value.

## Constructors

<a id="ctor-cellborderstyle-cellcolor"></a>
### CellBorder(CellBorderStyle, CellColor?)

```csharp
public CellBorder(CellBorderStyle Style, CellColor? Color = default)
```

One edge of a cell's border. A record: borders compare by value.

**Parameters**

- `Style`: The line.
- `Color`: The colour; null for automatic, which Excel shows black.

## Properties

<a id="color"></a>
### Color

```csharp
public CellColor? Color { get; init; }
```

The colour; null for automatic, which Excel shows black.

<a id="style"></a>
### Style

```csharp
public CellBorderStyle Style { get; init; }
```

The line.
