Skip to main content

BaseListBoxControl.AddEnum Method

Name Parameters Description
AddEnum(Type, Boolean) enumType, addEnumeratorIntegerValues Adds new items that represent elements of the specified enumeration to the control, allowing you to specify whether enumeration constant names or integer values are assigned to the item values.
AddEnum(Type) enumType Adds new items that represent elements of the specified enumeration to the control.
AddEnum<TEnum>() none Adds new items that represent elements of the specified enumeration to the control.
AddEnum<TEnum>(Converter<TEnum, String>, Boolean) displayTextConverter, addEnumeratorIntegerValues Adds new items that represent elements of the specified enumeration to the control. Allows you to customize item descriptions and specify whether underlying integer values are assigned to the item values.
AddEnum<TEnum>(Converter<TEnum, String>) displayTextConverter Adds new items that represent elements of the specified enumeration to the control, allowing you to customize item descriptions.