BarCheckItem.CheckBoxVisibility Property
Gets or sets the visibility of the item’s check box.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v19.2.dll
Declaration
[DefaultValue(CheckBoxVisibility.None)]
public virtual CheckBoxVisibility CheckBoxVisibility { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DevExpress.XtraBars.CheckBoxVisibility | **None** | A CheckBoxVisibility enumerator value that specifies the visibility of the current BarCheckItem‘s check box. |
Remarks
Depending on the CheckBoxVisibility property value, a BarCheckItem can display its check box before or after the caption (BarItem.Caption), or not display it at all. In the latter case, the BarCheckItem itself serves as a check box - an end-user can click its caption to check or uncheck the item (see the figure below).
The CheckBoxVisibility property is not in effect for a BarCheckItem embedded in a sub-menu. For this item, the check box is always displayed before the item’s caption.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CheckBoxVisibility 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.