ViewInfo.HideName Property
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 microsoft.office.infopath.dll)
Syntax
'Declaration
'Usage
Property Value
true if the name of the view is set to be hidden; otherwise false.
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 Office InfoPath 2007.
Example
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())
See Also
Reference
ViewInfo Class
ViewInfo Members
Microsoft.Office.InfoPath Namespace