Export (0) Print
Expand All
Expand Minimize

showMenuItem Attribute

Office 2007

Displays a menu item in the InfoPath View menu and adds a check mark next to the item when it is in use.

Type

xsf:xdYesNo

Parent Elements

ElementDescription
viewContains information about an InfoPath view.

Definition

<xsd:attribute name="showMenuItem" type="xsf:xdYesNo" use="optional"></xsd:attribute>

Remarks

The showMenuItem attribute is an optional attribute of the view element. The default value is "yes".

If the showMenuItem attribute for a menu item in the View menu is set to "yes", the item appears in the View menu and has a check mark next to it when it is in use. The menu item appears with the caption that has been defined for it and in the order specified in the form definition file (.xsf). If the showMenuItem attribute is not present or is set to "no", the menu item does not appear in the View menu. Users can still add items to the View menu by customizing it, but such items will not display a check mark when they are in use.

Example

The following is an example of the showMenuItem attribute as it is used in the view element:

<xsf:view name="View 1" caption="First view" showMenuItem="yes">
   <xsf:mainpane transform="view1.xsl"></xsf:mainpane>
</xsf:view>


Community Additions

ADD
Show:
© 2015 Microsoft