Condividi tramite


IMenu.SetGroupEnabled(Int32, Boolean) Method

Definition

Enable or disable all menu items that are in the given group.

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

Parameters

group
Int32

The group of items to operate on.

enabled
Boolean

If true the items will be enabled, else they will be disabled.

Attributes

Remarks

Enable or disable all menu items that are in the given group.

Java documentation for android.view.Menu.setGroupEnabled(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