Back to Devexpress

IButtonProperties.Checked Property

windowsforms-devexpress-dot-xtraeditors-dot-buttonpanel-dot-ibuttonproperties-63002224.md

latest2.2 KB
Original Source

IButtonProperties.Checked Property

Gets or sets if the current IButton is checked.

Namespace : DevExpress.XtraEditors.ButtonPanel

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DXCategory("Behavior")]
bool Checked { get; set; }
vb
<DXCategory("Behavior")>
Property Checked As Boolean

Property Value

TypeDescription
Boolean

A Boolean value specifying whether the current IButton is checked.

|

Remarks

If a Custom Header Button is of the check or group radio button type, it has checked/unchecked states. An end-user can click on a custom header button at runtime to change its state. To do it via code, use the Checked property. Note that regular (push) custom header buttons cannot be checked.

To get if a custom button is currently checked, use the IButton.IsChecked property. See the Header Buttons and WindowsUI Custom Buttons topics to learn more.

See Also

Header Buttons

WindowsUI Buttons

IButtonProperties Interface

IButtonProperties Members

DevExpress.XtraEditors.ButtonPanel Namespace