RadioGroupItemCollection.GetItemByValue(Object) Method
Gets a radio group item by its value.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
value | Object | The value to search. |
Returns
Type | Description |
---|---|
RadioGroupItem | The RadioGroupItem object with the value specified. |
Remarks
The method returns a RadioGroupItem from the RepositoryItemRadioGroup.Items collection according to its value.
The item’s value can be obtained via the RadioGroupItem.Value property. Note: for the editor to function correctly, items in the collection must be unique objects. If both the value parameter and the RadioGroupItem.Value field are null, the method returns the item.
If there is no match between the value parameter and any item’s RadioGroupItem.Value field, null is returned.
The RadioGroupItemCollection.GetItemIndexByValue method returns the item’s position within the collection according to the item’s value.