Condividi tramite


IMenu.Size Method

Definition

Get the number of items in the menu.

[Android.Runtime.Register("size", "()I", "GetSizeHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int Size ();
[<Android.Runtime.Register("size", "()I", "GetSizeHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Size : unit -> int

Returns

The item count.

Attributes

Remarks

Get the number of items in the menu. Note that this will change any times items are added or removed from the menu.

Java documentation for android.view.Menu.size().

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