Back to Devexpress

BaseListBoxControl.AddEnum Method

windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-dot-addenum.md

latest1.5 KB
Original Source

BaseListBoxControl.AddEnum Method

NameParametersDescription
AddEnum(Type, Boolean)enumType, addEnumeratorIntegerValuesAdds 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)enumTypeAdds new items that represent elements of the specified enumeration to the control.
AddEnum<TEnum>()noneAdds new items that represent elements of the specified enumeration to the control.
AddEnum<TEnum>(Converter<TEnum, String>, Boolean)displayTextConverter, addEnumeratorIntegerValuesAdds 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>)displayTextConverterAdds new items that represent elements of the specified enumeration to the control, allowing you to customize item descriptions.