2.3.39 CT_CustomUI

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

Referenced by: customUI

Specifies the root tag in a Custom UI document.

Child Elements:

commands: A CT_Commands element, as specified in section 2.3.30.

ribbon: A CT_Ribbon element, as specified in section 2.3.66.

backstage: A CT_Backstage element, as specified in section 2.3.1.

contextMenus: A CT_ContextMenus element, as specified in section 2.3.32.

Attributes:

onLoad: An ST_Delegate attribute, as specified in section 2.4.12, that specifies the name of a callback function that is called when the custom UI in this document is loaded by the application.

loadImage: An ST_Delegate attribute that specifies the name of a callback function that is called when the application needs to load an icon image.

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

 <xsd:complexType name="CT_CustomUI">
   <xsd:sequence>
     <xsd:element name="commands" type="CT_Commands" minOccurs="0" maxOccurs="1"/>
     <xsd:element name="ribbon" type="CT_Ribbon" minOccurs="0" maxOccurs="1"/>
     <xsd:element name="backstage" type="CT_Backstage" minOccurs="0" maxOccurs="1"/>
     <xsd:element name="contextMenus" type="CT_ContextMenus" minOccurs="0" maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="onLoad" type="ST_Delegate" use="optional"/>
   <xsd:attribute name="loadImage" type="ST_Delegate" use="optional"/>
 </xsd:complexType>

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