Table of Contents

Enum XlsxTableStyle

Namespace
DocToolkit
Assembly
DocToolkit.Xlsx.dll

A built-in Excel table style tier.

public enum XlsxTableStyle

Fields

Dark = 3

A dark banded style, the strongest tier ClosedXML offers.

Light = 1

A light banded style, the lightest tier ClosedXML offers.

Medium = 2

A medium banded style — the tier ClosedXML itself applies to a freshly created table when no theme is set, measured directly rather than assumed.

None = 0

No banding, no header emphasis — a plain named range with structured references.

Remarks

Four named tiers, not the 61 named themes the library beneath offers. ClosedXML's XLTableTheme is not an enum — a class with GetAllThemes()/FromName(string) and 61 public static fields (None plus 21 Light, 28 Medium and 11 Dark tiers), and FromName on an unrecognised name does not throw — it returns a theme whose own ToString() is empty, which would silently produce a malformed table for a caller's typo rather than failing where the mistake was made. This type holds to the same closed-vocabulary discipline as XlsxHighlight, and for the identical reason stated on XlsxRule: the library beneath offers more than this needs, and every extra value is a member to test, document and support forever.