FlexChart | ComponentOne
C1.Win.FlexChart.Toolbar.8 Assembly / C1.Win.Chart.Toolbar Namespace / ChartMenuItemBase Class / MenuItemFromEnum<T> Method

In This Topic
    MenuItemFromEnum<T> Method (ChartMenuItemBase)
    In This Topic
    Create menu items from enum.
    Syntax
    'Declaration
     
    Protected Function MenuItemFromEnum(Of T As System.Enum)( _
       ByVal val As T, _
       ByVal action As System.Action(Of T), _
       Optional ByVal items() As T, _
       Optional ByVal names() As System.String _
    ) As System.Collections.Generic.List(Of ToolStripMenuItem)
    protected System.Collections.Generic.List<ToolStripMenuItem> MenuItemFromEnum<T>( 
       T val,
       System.Action<T> action,
       T[] items,
       System.string[] names
    )
    where T: System.Enum

    Parameters

    val
    action
    items
    names

    Type Parameters

    T

    Return Value

    Created menu items.
    See Also