Table of Contents

Method AddEnumValues

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AddEnumValues(Type, object?)

Adds enum values to Items property of the control.

public virtual void AddEnumValues(Type type, object? selectValue = null)

Parameters

type Type

Type of the enum which values are added.

selectValue object

New SelectedItem value.

AddEnumValues<T>()

Adds enum values to Items property of the control.

public virtual void AddEnumValues<T>() where T : Enum

Type Parameters

T

Type of the enum which values are added.

AddEnumValues<T>(T)

Adds enum values to Items property of the control.

public virtual void AddEnumValues<T>(T selectValue) where T : Enum

Parameters

selectValue T

New SelectedItem value.

Type Parameters

T

Type of the enum which values are added.