Skip to main content
A newer version of this page is available. .
Bar

BarToggleSwitchItem.Checked Property

Gets or sets whether the item is checked.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[DefaultValue(false)]
[Bindable(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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Checked property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also