Back to Devexpress

BaseCheckedListBoxControl.CheckOnClick Property

windowsforms-devexpress-dot-xtraeditors-dot-basecheckedlistboxcontrol.md

latest2.9 KB
Original Source

BaseCheckedListBoxControl.CheckOnClick Property

Gets or sets whether one or two mouse clicks are required to toggle the check state of an unfocused (unselected) item.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool CheckOnClick { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Property CheckOnClick As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if a single mouse click is required to toggle the check state of an unfocused (unselected) item; false if two mouse clicks are required.

|

Remarks

Two clicks are required to change the check state of an unfocused item. The first click moves focus to the item and the second toggles its check state. Set the CheckOnClick property to true to focus the item and toggle its check state in one click.

The CheckOnClick property is in effect in two cases:

Note

The CheckOnClick property is ignored when multiple item selection is enabled.

The editor raises the ItemCheck event when an item’s check state changes.

Use the CheckedItems and CheckedIndices properties to obtain checked items and their indices.

See Also

CheckedIndices

CheckedItems

ItemCheck

BaseCheckedListBoxControl Class

BaseCheckedListBoxControl Members

DevExpress.XtraEditors Namespace