A newer version of this page is available. Switch to the current version.

RadioGroup.Text Property

Gets or sets the text label associated with a radio group editor.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[Bindable(false)]
[Browsable(false)]
public override string Text { get; set; }

Property Value

Type Description
String

A String value representing the text label associated with a radio group editor.

Remarks

This property overrides the BaseEdit.Text property. Actually, the property returns the string representation of the selected item's RadioGroupItem.Value property. The RadioGroup.SelectedIndex property specifies the index of the selected item within the RepositoryItemRadioGroup.Items collection.

Setting the Text property is not in effect. To change this property value, you can modify the BaseEdit.EditValue property inherited by the RadioGroup editor. In this case, the selection switches to the item with the matching RadioGroupItem.Value field. If there are no matches, the selection is cleared.

Note: to ensure proper functionality of the editor, items in the RepositoryItemRadioGroup.Items collection must be unique objects. Otherwise, if the assigned BaseEdit.EditValue property matches the RadioGroupItem.Value property of the several items, the selection switches to the first such item in the collection.

See Also