DefinedName class

Office 2013 and later

Defines the DefinedName Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is x14:definedName.

Namespace:  DocumentFormat.OpenXml.Office2010.Excel
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

No code example is currently available or this language may not be supported.

2.2.5.3 CT_DefinedName

Target namespace: http://schemas.microsoft.com/office/excel/2008/2/main

Referenced by: CT_DefinedNames

A complex type that specifies additional properties for a macro named name.

Child Elements:

argumentDescriptions: A CT_DefinedNameArgumentDescriptions element (section 2.2.5.4) that specifies a group of descriptions for the macro arguments if the macro has arguments.

Attributes:

name: An ST_Xstring attribute ([ISO/IEC-29500-1] section 22.9.2.19) that specifies the name of a macro. The name attribute value MUST be unique for each CT_DefinedName element inside the CT_DefinedNames element (section 2.2.5.2). At least one of the following conditions MUST be true: there exists a CT_DefinedName ([ISO/IEC-29500-1] section A.2) element with a name attribute equal to this value and either the vbProcedure attribute or the xlm attribute is equal to 1, or there exists a Visual Basic for Applications (VBA) macro having a name equal to this value.

The string MUST adhere to the name grammar as specified in [MS-XLSX] section 2.2.2.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment defines the contents of this complex type.

<xsd:complexType name="CT_DefinedName">

<xsd:sequence>

<xsd:element name="argumentDescriptions" type="CT_DefinedNameArgumentDescriptions" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

<xsd:attribute name="name" type="x:ST_Xstring" use="required"/>

</xsd:complexType>

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