Method AddEnumValues
AddEnumValues(Type, object?)
Adds enum values to Items property of the control.
public virtual void AddEnumValues(Type type, object? selectValue = null)
Parameters
type
TypeType of the enum which values are added.
selectValue
objectNew 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
TNew SelectedItem value.
Type Parameters
T
Type of the enum which values are added.