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

# GridTheme

```csharp
public sealed class GridTheme
```

Namespace `SharpCell.Grid` · package `SharpCell.Grid`

The colours of a grid.

## Constructors

<a id="ctor"></a>
### GridTheme()

```csharp
public GridTheme()
```

Colours close to Excel's light theme, as [GridTheme.Excel](SharpCell.Grid.GridTheme.md#excel); set properties in an initializer to change some.

## Properties

<a id="activecellborder"></a>
### ActiveCellBorder

```csharp
public GridColor ActiveCellBorder { get; init; }
```

The border around the active cell and the selection, and the line under the headers of selected cells.

<a id="activeheaderbackground"></a>
### ActiveHeaderBackground

```csharp
public GridColor ActiveHeaderBackground { get; init; }
```

Behind the headers of the rows and columns of the selected cells.

<a id="background"></a>
### Background

```csharp
public GridColor Background { get; init; }
```

Behind the cells.

<a id="celltext"></a>
### CellText

```csharp
public GridColor CellText { get; init; }
```

Text of cells.

<a id="excel"></a>
### Excel

```csharp
public static GridTheme Excel { get; }
```

Colours close to Excel's light theme.

<a id="filloutline"></a>
### FillOutline

```csharp
public GridColor FillOutline { get; init; }
```

The dashed border around the cells a fill handle is dragged over.

<a id="frozenline"></a>
### FrozenLine

```csharp
public GridColor FrozenLine { get; init; }
```

The line where panes are frozen.

<a id="gridline"></a>
### Gridline

```csharp
public GridColor Gridline { get; init; }
```

The lines between cells.

<a id="headerbackground"></a>
### HeaderBackground

```csharp
public GridColor HeaderBackground { get; init; }
```

Behind the row and column headers.

<a id="headerline"></a>
### HeaderLine

```csharp
public GridColor HeaderLine { get; init; }
```

The lines between headers and around them.

<a id="headertext"></a>
### HeaderText

```csharp
public GridColor HeaderText { get; init; }
```

Header text: column letters and row numbers.

<a id="referenceborder"></a>
### ReferenceBorder

```csharp
public GridColor ReferenceBorder { get; init; }
```

The dashed border around the cells picked with the mouse while a formula is typed.

<a id="selectedheaderbackground"></a>
### SelectedHeaderBackground

```csharp
public GridColor SelectedHeaderBackground { get; init; }
```

Behind the headers of whole selected columns or rows.

<a id="selectedheadertext"></a>
### SelectedHeaderText

```csharp
public GridColor SelectedHeaderText { get; init; }
```

Text of the headers of whole selected columns or rows.

<a id="selectionfill"></a>
### SelectionFill

```csharp
public GridColor SelectionFill { get; init; }
```

The translucent shade over selected cells other than the active cell.
