ContextMenu class

Office 2013 and later

Defines the ContextMenu Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is mso14:contextMenu.

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

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

2.3.31 CT_ContextMenu

Target namespace: http://schemas.microsoft.com/office/2009/07/customui

Referenced by: CT_ContextMenus

Specifies a built-in context menu control.

Child Elements:

control: A CT_ControlCloneRegular element, as specified in section 2.3.38.

button: A CT_ButtonRegular element, as specified in section 2.3.26.

checkBox: A CT_CheckBox element, as specified in section 2.3.27.

gallery: A CT_GalleryRegular element, as specified in section 2.3.46.

toggleButton: A CT_ToggleButtonRegular element, as specified in section 2.3.82.

splitButton: A CT_SplitButtonRegular element, as specified in section 2.3.69.

menu: A CT_MenuRegular element, as specified in section 2.3.56.

dynamicMenu: A CT_DynamicMenuRegular element, as specified in section 2.3.43.

menuSeparator: A CT_MenuSeparatorNoTitle element, as specified in section 2.3.58.

Attributes:

idMso: An ST_ID attribute, as specified in section 2.4.12, that specifies the identifier of a built-in control. The id, idQ, and idMso attributes are mutually exclusive. Exactly one of these attributes MUST be specified.

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

<xsd:complexType name="CT_ContextMenu">

<xsd:sequence>

<xsd:choice minOccurs="0" maxOccurs="1000">

<xsd:group ref="EG_ContextMenuControls"/>

</xsd:choice>

</xsd:sequence>

<xsd:attributeGroup ref="AG_IDMso"/>

</xsd:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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: