Skip to main content
Bar

BarToggleSwitchItem.Checked Property

Gets or sets whether the item is checked.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Bindable(false)]
[DefaultValue(false)]
public bool Checked { get; set; }

Property Value

Type Default Description
Boolean false

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.

BarToggleSwitchItem_On BarToggleSwitchItem_Off

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

See Also