Click or drag to resize

SubmenuExtensionsGetChildren Method

Gets an enumeration of all children of the specified submenu.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static IEnumerable<MenuItem> GetChildren(
	this ISubmenu submenu
)

Parameters

submenu
Type: Eto.FormsISubmenu
Submenu to get all child menu items for.

Return Value

Type: IEnumerableMenuItem
Enumeration of all child menu items of the specified submenu.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISubmenu. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This traverses all items of the submenu, and any children of those items if they implement ISubmenu as well.
See Also