Back to Devexpress

RepositoryItemCheckEdit.IsRadioButton Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedit-4574dfbf.md

latest2.4 KB
Original Source

RepositoryItemCheckEdit.IsRadioButton Property

Gets a value indicating whether the check editor functions like a radio button.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public override bool IsRadioButton { get; }
vb
<Browsable(False)>
Public Overrides ReadOnly Property IsRadioButton As Boolean

Property Value

TypeDescription
Boolean

true if the check editor represents a radio button; otherwise, false.

|

Remarks

A check editor supports use as a standard radio button. This behavior is available when they are combined in a logical radio group. To provide a group of radio-like check editors, you should set their RepositoryItemCheckEdit.RadioGroupIndex property to a common integer value (which should not be negative).

You can use the IsRadioButton property to see a check editor represents an individual radio button. This property returns true for a standalone (i.e. not inplace within a container control) check edit control whose RepositoryItemCheckEdit.RadioGroupIndex is set to a non-negative integer.

Since radio buttons are mutually exclusive, a check editor in radio button mode can accept only two states - checked or unchecked. When the user selects a check editor within a group, it is checked and the others are unchecked automatically.

See Also

RadioGroupIndex

RepositoryItemCheckEdit Class

RepositoryItemCheckEdit Members

DevExpress.XtraEditors.Repository Namespace