Android.Views.IMenuItem.SetVisible Method
Sets the visibility of the menu item.

Syntax

[Android.Runtime.Register("setVisible", "(Z)Landroid/view/MenuItem;", "GetSetVisible_ZHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem SetVisible (bool visible)

Parameters

visible
If true then the item will be visible; if false it is hidden.

Returns

Documentation for this section has not yet been entered.

Remarks

Sets the visibility of the menu item. Even if a menu item is not visible, it may still be invoked via its shortcut (to completely disable an item, set it to invisible and IMenuItem.SetEnabled(bool)).

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1