ViewInfo2.HideName Property

Definition

Gets whether the name of the view is set to be hidden on the View menu.

public:
 property bool HideName { bool get(); };
public bool HideName { get; }
member this.HideName : bool
Public ReadOnly Property HideName As Boolean

Property Value

true if the name of the view is hidden; otherwise false.

Examples

In the following example, the HideName property is used to display whether the view named "View2" is configured to be hidden on the View menu.

ViewInfo2 myView = (ViewInfo2)thisXDocument.ViewInfos["View2"];
thisXDocument.UI.Alert("Is hidden: " + myView.HideName);

Remarks

The HideName property specifies whether the form designer set the Show on the View menu when filling out the form check box in the View Properties dialog box.

Because the HideName property is newin Microsoft InfoPath, you must declare and cast to the ViewInfo2 type to access it. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Applies to