[]
Creates menu item from enumeration.
protected void MenuItemFromEnum<T>(T val, Action<T> action, T[] items = null, string[] names = null) where T : Enum
Protected Sub MenuItemFromEnum(Of T As [Enum])(val As T, action As Action(Of T), Optional items As T() = Nothing, Optional names As String() = Nothing)
| Type | Name | Description |
|---|---|---|
| T | val | |
| Action<T> | action | |
| T[] | items | |
| string[] | names |
| Name | Description |
|---|---|
| T |