Back to Devexpress

BarToggleSwitchItem.Checked Property

windowsforms-devexpress-dot-xtrabars-dot-bartoggleswitchitem-4a92a1a3.md

latest1.8 KB
Original Source

BarToggleSwitchItem.Checked Property

Gets or sets whether the item is checked.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Bindable(false)]
[DefaultValue(false)]
public bool Checked { get; set; }
vb
<DefaultValue(False)>
<Bindable(False)>
Public Property Checked As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the item is checked; otherwise, false.

|

Remarks

Use the Checked property to specify the check state of the toggle switch (checked or unchecked). When this property’s value is true , the toggle is turned right. The following images show the toggle switch turned on (checked) and off (unchecked), respectively.

Changing the check state of the toggle switch raises the BarToggleSwitchItem.CheckedChanged event.

See Also

CheckedChanged

BarToggleSwitchItem Class

BarToggleSwitchItem Members

DevExpress.XtraBars Namespace