Android Guides | Samples

Android.Views.IMenu.Size Method

Get the number of items in the menu.

Syntax

[Android.Runtime.Register("size", "()I", "GetSizeHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Int32 Size ()

Remarks

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

[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