ViewInfo2.HideName property

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

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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.

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 Microsoft.Office.Interop.InfoPath.SemiTrust 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.

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

See also

Reference

ViewInfo2 interface

ViewInfo2 members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace