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

ListBoxItemCollection.AddEnum Method

Name Parameters Description
AddEnum(Type, Boolean) enumType, addEnumeratorIntegerValues Populates this ListBoxItemCollection with items generated from values of the specific enumeration. Allows generated items to store numeric enumeration values instead of enumeration constant names. This overload should be used only for the ListBoxItemCollection class descendants.
AddEnum(Type) enumType Populates this ListBoxItemCollection with items generated from values of the specific enumeration.
AddEnum<TEnum>() none Populates this ListBoxItemCollection with items generated from values of the specific enumeration.
AddEnum<TEnum>(Converter<TEnum, String>, Boolean) displayTextConverter, addEnumeratorIntegerValues
AddEnum<TEnum>(Converter<TEnum, String>) displayTextConverter Populates this ListBoxItemCollection with items generated from values of the specific enumeration and replaces default item descriptions. This overload should be used only for the ListBoxItemCollection class descendants.