次の方法で共有


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
Public MustOverride ReadOnly Property HideName As Boolean
    Get
'Usage
Dim instance As ViewInfo
Dim value As Boolean

value = instance.HideName
public abstract bool HideName { get; }

Property Value

Type: System.Boolean
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 InfoPath Filler.

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

See Also

Reference

ViewInfo Class

ViewInfo Members

Microsoft.Office.InfoPath Namespace