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

BarItems.CreateCheckItem(String, Boolean) Method

Creates a new BarCheckItem and adds it to the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v18.2.dll

Declaration

public BarCheckItem CreateCheckItem(
    string caption,
    bool check
)

Parameters

Name Type Description
caption String

A String value that specifies the item’s caption. This value is assigned to the BarItem.Caption property.

check Boolean

true if the item is checked; otherwise, false. This value is assigned to the BarCheckItem.Checked property.

Returns

Type Description
BarCheckItem

A BarCheckItem object that represents the created bar item.

See Also