IMenu.AddSubMenu IMenu.AddSubMenu Method

Definition

Overloads

AddSubMenu(ICharSequence) AddSubMenu(ICharSequence)

Add a new sub-menu to the menu.

AddSubMenu(Int32) AddSubMenu(Int32)

Add a new sub-menu to the menu.

AddSubMenu(Int32, Int32, Int32, ICharSequence) AddSubMenu(Int32, Int32, Int32, ICharSequence)

Add a new sub-menu to the menu.

AddSubMenu(Int32, Int32, Int32, Int32) AddSubMenu(Int32, Int32, Int32, Int32)

Android.Views.Menu.addSubMenu(int,int,int,java.lang.CharSequence)

AddSubMenu(ICharSequence) AddSubMenu(ICharSequence)

Add a new sub-menu to the menu.

[Android.Runtime.Register("addSubMenu", "(Ljava/lang/CharSequence;)Landroid/view/SubMenu;", "GetAddSubMenu_Ljava_lang_CharSequence_Handler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.ISubMenu AddSubMenu (Java.Lang.ICharSequence title);
abstract member AddSubMenu : Java.Lang.ICharSequence -> Android.Views.ISubMenu

Parameters

title
ICharSequence ICharSequence

The text to display for the item.

Returns

Remarks

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.

AddSubMenu(Int32) AddSubMenu(Int32)

Add a new sub-menu to the menu.

[Android.Runtime.Register("addSubMenu", "(I)Landroid/view/SubMenu;", "GetAddSubMenu_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.ISubMenu AddSubMenu (int titleRes);
abstract member AddSubMenu : int -> Android.Views.ISubMenu

Parameters

titleRes
Int32 Int32

Resource identifier of title string.

Returns

Remarks

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.

AddSubMenu(Int32, Int32, Int32, ICharSequence) AddSubMenu(Int32, Int32, Int32, ICharSequence)

Add a new sub-menu to the menu.

[Android.Runtime.Register("addSubMenu", "(IIILjava/lang/CharSequence;)Landroid/view/SubMenu;", "GetAddSubMenu_IIILjava_lang_CharSequence_Handler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.ISubMenu AddSubMenu (int groupId, int itemId, int order, Java.Lang.ICharSequence title);
abstract member AddSubMenu : int * int * int * Java.Lang.ICharSequence -> Android.Views.ISubMenu

Parameters

groupId
Int32 Int32

The group identifier that this item should be part of. This can also be used to define groups of items for batch state changes. Normally use None if an item should not be in a group.

itemId
Int32 Int32

Unique item ID. Use None if you do not need a unique ID.

order
Int32 Int32

The order for the item. Use None if you do not care about the order. See Order.

title
ICharSequence ICharSequence

The text to display for the item.

Returns

Remarks

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.

AddSubMenu(Int32, Int32, Int32, Int32) AddSubMenu(Int32, Int32, Int32, Int32)

Android.Views.Menu.addSubMenu(int,int,int,java.lang.CharSequence)

[Android.Runtime.Register("addSubMenu", "(IIII)Landroid/view/SubMenu;", "GetAddSubMenu_IIIIHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.ISubMenu AddSubMenu (int groupId, int itemId, int order, int titleRes);
abstract member AddSubMenu : int * int * int * int -> Android.Views.ISubMenu

Parameters

groupId
Int32 Int32

The group identifier that this item should be part of. This can also be used to define groups of items for batch state changes. Normally use None if an item should not be in a group.

itemId
Int32 Int32

Unique item ID. Use None if you do not need a unique ID.

order
Int32 Int32

The order for the item. Use None if you do not care about the order. See Order.

titleRes
Int32 Int32

Resource identifier of title string.

Returns

Remarks

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