Skip to main content
A newer version of this page is available. .

ImageComboBoxItemCollection.AddEnum Method

Name Parameters Description
AddEnum(Type, Boolean) enumType, addEnumeratorIntegerValues Adds new items to the collection that will represent elements of the specified enumeration. Allows you to assign integer values to the items’ Value property.
AddEnum(Type) enumType Adds new items to the collection that will represent elements of the specified enumeration.
AddEnum<TEnum>() none Adds new items to the collection that will represent elements of the specified enumeration.
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 to the collection that will represent elements of the specified enumeration. The display captions of the items are generated by the specified converter.