Table of Contents

Class ExcelTableOptions

Namespace
ExcelReader.Core.Writer
Assembly
ExcelReader.Core.dll

Configures an Excel table written with BeginTable(string, IReadOnlyList<string>, ExcelTableOptions?).

public sealed record ExcelTableOptions : IEquatable<ExcelTableOptions>
Inheritance
ExcelTableOptions
Implements
Inherited Members

Properties

Default

The default options: column A, TableStyleMedium2, banded rows.

public static ExcelTableOptions Default { get; }

Property Value

ExcelTableOptions

FirstColumn

The zero-based column of the table's first column. Defaults to 0 (column A).

public int FirstColumn { get; init; }

Property Value

int

Remarks

Rows written while the table is open must skip to this column themselves.

ShowColumnStripes

Whether alternate columns are banded. Defaults to false.

public bool ShowColumnStripes { get; init; }

Property Value

bool

ShowFirstColumn

Whether the first column gets the style's emphasis. Defaults to false.

public bool ShowFirstColumn { get; init; }

Property Value

bool

ShowLastColumn

Whether the last column gets the style's emphasis. Defaults to false.

public bool ShowLastColumn { get; init; }

Property Value

bool

ShowRowStripes

Whether alternate rows are banded. Defaults to true.

public bool ShowRowStripes { get; init; }

Property Value

bool

StyleName

The built-in table style: TableStyleLight1–21, TableStyleMedium1–28 or TableStyleDark1–11; null for no style. Defaults to TableStyleMedium2.

public string? StyleName { get; init; }

Property Value

string