MenuItemCollectionGetSubmenu Method |
Gets the submenu from the collection with the specified text, optionally creating one if not found.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public ButtonMenuItem GetSubmenu(
string submenuText,
int order = 0,
bool plaintextMatch = true,
bool create = true
)
Public Function GetSubmenu (
submenuText As String,
Optional order As Integer = 0,
Optional plaintextMatch As Boolean = true,
Optional create As Boolean = true
) As ButtonMenuItem
member GetSubmenu :
submenuText : string *
?order : int *
?plaintextMatch : bool *
?create : bool
(* Defaults:
let _order = defaultArg order 0
let _plaintextMatch = defaultArg plaintextMatch true
let _create = defaultArg create true
*)
-> ButtonMenuItem
Parameters
- submenuText
- Type: SystemString
Text of the submenu to find or add. - order (Optional)
- Type: SystemInt32
Order of the submenu item to add. Not used if there is already a submenu with the specified text. - plaintextMatch (Optional)
- Type: SystemBoolean
If set to true, matches excluding any mnemonic symbol idenfifiers. - create (Optional)
- Type: SystemBoolean
If set to true, creates the menu if it doesn't exist in the collection, otherwise false.
Return Value
Type:
ButtonMenuItemThe submenu instance if found, or a new submenu instance added at the specified order.
See Also