IMenuExtensions.AddSubMenu Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddSubMenu(IMenu, String) |
Adds a submenu with the specified title to the menu. |
| AddSubMenu(IMenu, Int32, Int32, Int32, String) |
Adds a submenu with the specified group, item, order, and title to the menu. |
AddSubMenu(IMenu, String)
Adds a submenu with the specified title to the menu.
public static Android.Views.ISubMenu? AddSubMenu(this Android.Views.IMenu self, string? title);
static member AddSubMenu : Android.Views.IMenu * string -> Android.Views.ISubMenu
Parameters
- self
- IMenu
The Android.Views.IMenu value used for self.
- title
- String
The System.String value used for title.
Returns
The result of the add sub menu operation.
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
AddSubMenu(IMenu, Int32, Int32, Int32, String)
Adds a submenu with the specified group, item, order, and title to the menu.
public static Android.Views.ISubMenu? AddSubMenu(this Android.Views.IMenu self, int groupId, int itemId, int order, string? title);
static member AddSubMenu : Android.Views.IMenu * int * int * int * string -> Android.Views.ISubMenu
Parameters
- self
- IMenu
The Android.Views.IMenu value used for self.
- groupId
- Int32
The System.Int32 value used for group id.
- itemId
- Int32
The System.Int32 value used for item id.
- order
- Int32
The System.Int32 value used for order.
- title
- String
The System.String value used for title.
Returns
The result of the add sub menu operation.
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.