This documentation is archived and is not being maintained.

name Attribute (menuArea Element)

Office 2007

Corresponds to one of the built-in Microsoft Office InfoPath 2007 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>


Show: