Click or drag to resize

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
)

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: ButtonMenuItem
The submenu instance if found, or a new submenu instance added at the specified order.
See Also