Hide

YetaWF.ComponentsHTML Package Documentation

Display
Print

YetaWF.Modules.ComponentsHTML.Components.EnumEditComponent.GetEnumSelectionList Method

Given an enum type, returns a collection suitable for use in a DropDownList component.

Class: YetaWF.Modules.ComponentsHTML.Components.EnumEditComponent
Namespace: YetaWF.Modules.ComponentsHTML.Components
Assembly: YetaWF.ComponentsHTML

Syntax

public static List<YetaWF.Core.Components.SelectionItem<int>> GetEnumSelectionList(
    Type enumType,
    bool showSelect = false );

Parameters

enumType

The type of the enum.

showSelect

Defines whether the first entry "(select)" should be generated.

Return Value

Returns a collection suitable for use in a DropDownList component.

See Also YetaWF.Modules.ComponentsHTML.Components.EnumEditComponent ClassYetaWF.ComponentsHTML PackageYetaWF.Core