A newer version of this page is available. Switch to the current version.

BaseListBoxControl.AddEnum Method

Name Parameters Description
AddEnum(Type) enumType Adds new items that represent elements of the specified enumeration to the control.
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<TEnum>() none Adds new items that represent elements of the specified enumeration to the control.
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.
AddEnum<TEnum>(Converter<TEnum, String>, Boolean) displayTextConverter, addEnumeratorIntegerValues