menu Element

Microsoft Office InfoPath

menu Element

Contains information about the custom menus used in the view.

Type

      xsd:complexType
    

Structure

Name Description
button(Optional element) Defines a button that has an associated action.
caption (Required attribute) Used as the caption for a menu.
menu (Optional element) Contains information about the menus used within a menu (cascading menus).

Remarks

The menu element is an optional element of the view, toolbar, and menuArea elements. Multiple menus can be declared for a form, and each menu can contain multiple menu or button elements.

Note  To create cascading menus, a menu element can be nested inside another menu element.

Example

The following is an example of the menu element:

    <xsf:menuArea name="msoInsertMenu">
   <xsf:menu caption="&amp;Section">
      <xsf:button action="xCollection::insert" xmlToEdit="CD_10"
         caption="CD" showIf="always"></xsf:button>
      <xsf:button action="xCollection::insert" xmlToEdit="Track_14" 
         caption="Track" showIf="always"></xsf:button>
      <xsf:button action="xOptional::insert" xmlToEdit="Label_16" 
         caption="Label"></xsf:button>
   </xsf:menu>
</xsf:menuArea>