2.3.58 CT_MenuRoot

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

Referenced by: menu

Specifies the root element of the customization XML used by the CT_DynamicMenu complex type, as specified in section 2.3.42.

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.84.

menuSeparator: A CT_MenuSeparator element, as specified in section 2.3.59.

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

menu: A CT_MenuRegular element.

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

Attributes:

title: An ST_String attribute, as specified in section 2.4.24, that specifies a string that is displayed as a title of the menu. The title and getTitle attributes are mutually exclusive. They MUST NOT be used together. If neither attribute is specified, the menu does not display a title.

getTitle: An ST_Delegate attribute, as specified in section 2.4.12, that specifies the name of a callback function that is called to determine the title of the menu. The title and getTitle attributes are mutually exclusive. They MUST NOT be used together. If neither attribute is specified, the menu does not display a title.

itemSize: An ST_ItemSize attribute, as specified in section 2.4.18, that specifies the size of the menu items in this control.

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

 <xsd:complexType name="CT_MenuRoot">
   <xsd:sequence>
     <xsd:choice minOccurs="0" maxOccurs="1000">
       <xsd:group ref="EG_MenuControlsBase"/>
       <xsd:group ref="EG_MenuOrSplitButtonRegular"/>
     </xsd:choice>
   </xsd:sequence>
   <xsd:attributeGroup ref="AG_Title"/>
   <xsd:attribute name="itemSize" type="ST_ItemSize" use="optional"/>
 </xsd:complexType>

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