name Attribute (menuArea Element)

Corresponds to one of the built-in Microsoft Office InfoPath 2003 top-level menus.

Type

xsd:NMTOKEN

Remarks

The name attribute is a required attribute of the menuArea element.

There cannot be more than one menu area with the same name within a given view.

InfoPath has the following named menu areas that correspond to the built-in menu elements that can be customized using the menuArea element:

NameDescription
msoFileMenuMenu items that are added to the File menu.
msoEditMenuMenu items that are added to the Edit menu.
msoInsertMenuMenu items that are added to the Insert menu.
msoViewMenuMenu items that are added to the View menu.
msoFormatMenuMenu items that are added to the Format menu.
msoToolsMenuMenu items that are added to the Tools menu.
msoTableMenuMenu items that are added to the Table menu.
msoHelpMenuMenu items that are added to the Help menu.
msoStructuralEditingContextMenuMenu items that are added to the right-click shortcut menu.

Example

The following is an example of the name attribute as it is used in the menuArea 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>
©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp