Mcd class

Office 2013 and later

Defines the Mcd Class. When the object is serialized out as xml, its qualified name is wne:mcd.

Namespace:  DocumentFormat.OpenXml.Office.Word
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Mcd : OpenXmlLeafElement

2.1.4.1 CT_Mcd

Target namespace: http://schemas.microsoft.com/office/word/2006/wordml

Referenced by: CT_Mcds

A complex type that specifies a macro.

Attributes:

macroName : An ST_String attribute ([ECMA-376] Part 4, Section 2.18.89) that MUST equal the name attribute with every character set to uppercase.

name : An ST_String attribute ([ECMA-376] Part 4, Section 2.18.89) that specifies the name of the macro. name MUST NOT exceed 255 characters.

menuHelp : An ST_String attribute ([ECMA-376] Part 4, Section 2.18.89) that MUST be ignored.

bEncrypt : An ST_UcharHexNumber attribute ([ECMA-376] Part 4, Section 2.18.106) that MUST be 0.

cmg : An ST_UcharHexNumber attribute ([ECMA-376] Part 4, Section 2.18.106) that MUST be 56.

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

<xsd:complexType name="CT_Mcd">

<xsd:attribute name="macroName" type="w:ST_String" use="optional"/>

<xsd:attribute name="name" type="w:ST_String" use="optional"/>

<xsd:attribute name="menuHelp" type="w:ST_String" use="optional"/>

<xsd:attribute name="bEncrypt" type="w:ST_UcharHexNumber"/>

<xsd:attribute name="cmg" type="w:ST_UcharHexNumber"/>

</xsd:complexType>

2.1.5.2 CT_Mcd

Target namespace: http://schemas.microsoft.com/office/word/2006/wordml

Referenced by: CT_Mcds

A complex type that specifies a macro.

Attributes:

macroName: An ST_String attribute ([ISO/IEC-29500-1] section 22.9.2.13) that MUST equal the name attribute with every character set to uppercase.

name: An ST_String attribute ([ISO/IEC-29500-1] section 22.9.2.13) that specifies the name of the macro. name MUST NOT exceed 255 characters.

menuHelp: An ST_String attribute ([ISO/IEC-29500-1] section 22.9.2.13) that MUST be ignored.

bEncrypt: An ST_UcharHexNumber attribute ([ISO/IEC-29500-1] section 17.18.98) that MUST be 0.

cmg: An ST_UcharHexNumber attribute ([ISO/IEC-29500-1] section 17.18.98) that MUST be 56.

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

<xsd:complexType name="CT_Mcd">

<xsd:attribute name="macroName" type="w:ST_String" use="optional"/>

<xsd:attribute name="name" type="w:ST_String" use="optional"/>

<xsd:attribute name="menuHelp" type="w:ST_String" use="optional"/>

<xsd:attribute name="bEncrypt" type="w:ST_UcharHexNumber"/>

<xsd:attribute name="cmg" type="w:ST_UcharHexNumber"/>

</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: