ViewInfo2.HideName Property
Gets whether the name of the view is set to be hidden on the View menu.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
ReadOnly Property HideName As Boolean
Get
'Usage
Dim instance As ViewInfo2
Dim value As Boolean
value = instance.HideName
bool HideName { get; }
Property Value
Type: System.Boolean
true if the name of the view is 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.
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);