Back to Devexpress

RepositoryItemCheckedComboBoxEdit.AddEnum Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-dot-addenum.md

latest1.7 KB
Original Source

RepositoryItemCheckedComboBoxEdit.AddEnum Method

NameParametersDescription
AddEnum(Type, Boolean)enumType, addEnumeratorIntegerValuesAdds new items that represent elements of the specified enumeration to the editor drop-down, 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 editor drop-down.
AddEnum<TEnum>()noneAdds new items that represent elements of the specified enumeration to the editor drop-down.
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 editor drop-down, allowing you to customize item descriptions.