Share via


MenuAction.Visible Property

Gets or sets a value indicating whether the item is displayed in the menu.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Property Visible As Boolean
    Get
    Set
public bool Visible { get; set; }
public:
property bool Visible {
    bool get ();
    void set (bool value);
}
member Visible : bool with get, set
function get Visible () : boolean
function set Visible (value : boolean)

Property Value

Type: System.Boolean
true if the action is displayed in the menu; otherwise, false. The default is true.

.NET Framework Security

See Also

Reference

MenuAction Class

Microsoft.Windows.Design.Interaction Namespace

PrimarySelectionContextMenuProvider

MenuGroup

Other Resources

Walkthrough: Creating a Menu Provider