Class XlsxDefinedNames
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
The defined names of an opened workbook (Phase 199): read as the file lists them, added, changed and removed as Excel's Name Manager does, and written the way Excel writes its own.
public sealed class XlsxDefinedNames : IReadOnlyList<XlsxDefinedName>, IReadOnlyCollection<XlsxDefinedName>, IEnumerable<XlsxDefinedName>, IEnumerable
- Inheritance
-
XlsxDefinedNames
- Implements
- Inherited Members
Remarks
A name belongs to the workbook or to one sheet (its scope). Two names of one scope may not
be one name without regard to case (Rate and RATE); a sheet may have a name the
workbook also has, and on that sheet the sheet's own is meant.
Excel's own names (Print_Area, Print_Titles, Criteria, Database,
Extract and the others) are shown and given without the _xlnm. a file writes them with;
IsBuiltIn says which a name is.
A name whose sheet index names no sheet of the workbook is kept in the file and not listed.
Properties
- Count
Gets the number of names.
- this[int]
Gets a name by its place in the list.
Methods
- Add(string, string)
Adds a name of the workbook.
- Add(string, string, XlsxDocumentSheet?, string?, bool)
Adds a name, as Excel's New Name does, where Excel would list it.
- Find(string, XlsxDocumentSheet?)
Returns the name of a scope, found without regard to case; a built-in name is found with or without its
_xlnm..
- GetEnumerator()
Returns the names, in the order the file lists them.
- Remove(string, XlsxDocumentSheet?)
Removes the name of a scope, as Excel's Name Manager deletes it. Formulas that use it are left as they are (Excel shows them as
#NAME?) and reported (DXP1005).