Edit

Share via


ViewInfo.HideName Property

Definition

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

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

Property Value

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

Examples

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

ViewInfo myViewInfo = this.ViewInfos["View2"];
MessageBox.Show("Is hidden: " + myViewInfo.HideName.ToString());
Dim myViewInfo As ViewInfo  = Me.ViewInfos("View2")
MessageBox.Show("Is hidden: " & myViewInfo.HideName.ToString())

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.

This member can be accessed without restrictions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

Applies to