Skip to main content

RadioGroupItemCollection.AddEnum<TEnum>() Method

Adds items that represent elements of the specified enumeration to the current collection.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public void AddEnum<TEnum>()

Type Parameters

Name
TEnum

Remarks

This method fetches elements from the specified enumeration and creates new items within the collection that represent these elements. An item’s value and description are set so as to identify the corresponding element. So, when a specific item is selected in the RadioGroup control, the editor’s edit value is set to the corresponding enumeration value.

You can handle the RadioGroup.SelectedIndexChanged or RepositoryItem.EditValueChanged event to respond to edit value changes.

See Also