Table of Contents

Class XlsxDefinedName

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

One defined name of an opened workbook (Phase 199): what it is called, the scope it belongs to, and what it stands for, which can be changed.

public sealed class XlsxDefinedName
Inheritance
XlsxDefinedName
Inherited Members

Remarks

The name stays attached to the workbook's list: each property reads the workbook part as it is now, and each change writes it. Once the name is removed (or its sheet deleted), reading or changing it throws.

Properties

Comment

Gets or sets the name's comment; null for none. At most 255 characters.

Exists

Gets whether the name is still in the workbook.

Hidden

Gets or sets whether Excel's Name Manager hides the name.

IsBuiltIn

Gets whether the name is one of Excel's own (written with _xlnm.): a print area, print titles, a filter's range, ...

Name

Gets the name as Excel shows it: Print_Area for the _xlnm.Print_Area a file writes.

RefersTo

Gets or sets what the name stands for, as the file writes it: a formula without its =, such as Data!$B$2, 0.07 or SUM(Data!$A$2:$A$6). A value set may have its =.

Scope

Gets the sheet the name belongs to; null for a name of the workbook.

Methods

ToString()

Returns the name as Excel's Name Manager shows it: Rate, or Data!Rate for a sheet's.