Export (0) Print
Expand All
Expand Minimize

menu Element

Office 2007

Contains information about the custom menus used in the view.

Type

xsd:complexType

Structure

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

Bb265078.vs_note(en-us,office.12).gif  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>


Community Additions

ADD
Show:
© 2014 Microsoft