Table of Contents

Property Name

Namespace
DocWright.Formats.Xlsx
Assembly
DocWright.Formats.Xlsx.dll

Name

Gets or sets the sheet name as the tab shows it.

public string Name { get; set; }

Property Value

string

Remarks

Excel's own rules: one to 31 characters, none of : \ / ? * [ ], and not blank. A name that breaks them is rejected here rather than written into a file Excel then refuses to open — see XlsxSheetName for the normalizer a caller can use to derive a legal name from arbitrary text.

Exceptions

ArgumentException

The name is not legal.