MenuItem.Visible Property

Gets or sets whether a menu item is displayed.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property Visible As Boolean
    Get
    Set
'Usage
Dim instance As MenuItem
Dim value As Boolean

value = instance.Visible

instance.Visible = value
public bool Visible { get; set; }

Property Value

Type: System.Boolean
true if the menu item is visible on the menu; otherwise, false. The default is true.

See Also

Reference

MenuItem Class

MenuItem Members

Microsoft.SharePoint.WebPartPages Namespace