This documentation is archived and is not being maintained.

ViewInfo.HideName Property (Microsoft.Office.InfoPath)

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

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in

public abstract bool HideName { get; }

Property Value

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

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 Office InfoPath 2007.

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());