DefinedNames Class

Defined Names.When the object is serialized out as xml, its qualified name is x:definedNames.

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class DefinedNames : OpenXmlCompositeElement

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.


<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"

end example]

Parent Elements

workbook (§18.2.27)

Child Elements


definedName (Defined Name)


[Note: The W3C XML Schema definition of this element’s content model (CT_DefinedNames) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions