共用方式為


IMenu.SetGroupVisible(Int32, Boolean) Method

Definition

Show or hide all menu items that are in the given group.

[Android.Runtime.Register("setGroupVisible", "(IZ)V", "GetSetGroupVisible_IZHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetGroupVisible (int group, bool visible);
[<Android.Runtime.Register("setGroupVisible", "(IZ)V", "GetSetGroupVisible_IZHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetGroupVisible : int * bool -> unit

Parameters

group
Int32

The group of items to operate on.

visible
Boolean

If true the items are visible, else they are hidden.

Attributes

Remarks

Show or hide all menu items that are in the given group.

Java documentation for android.view.Menu.setGroupVisible(int, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also