DefinedNames Class
Defined Names.When the object is serialized out as xml, its qualified name is x:definedNames.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Spreadsheet.DefinedNames
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(DefinedName))> _
Public Class DefinedNames _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As DefinedNames
[ChildElementInfoAttribute(typeof(DefinedName))]
public class DefinedNames : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
- DefinedName <x:definedName>
[ISO/IEC 29500-1 1st Edition]
18.2.6 definedNames (Defined Names)
This element defines the collection of defined names for this workbook. Defined names are descriptive names to represent cells, ranges of cells, formulas, or constant values. Defined names can be used to represent a range on any worksheet.
[Example:
<definedNames> <definedName name="NamedFormula" comment="Comment text for defined name.">SUM(Sheet3!$B$2:$B$9)</definedName> <definedName name="NamedRange">Sheet3!$A$1:$C$12</definedName> <definedName name="NamedRangeFromExternalReference" localSheetId="2" hidden="1">Sheet5!$A$1:$T$47</definedName> </definedNames>
end example]
Parent Elements |
---|
workbook (§18.2.27) |
Child Elements |
Subclause |
---|---|
definedName (Defined Name) |
§18.2.5 |
[Note: The W3C XML Schema definition of this element’s content model (CT_DefinedNames) is located in §A.2. end note]
© ISO/IEC29500: 2008.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.