Back to Devexpress

BarItems.CreateCheckItem(String, Boolean) Method

windowsforms-devexpress-dot-xtrabars-dot-baritems-dot-createcheckitem-x28-system-dot-string-system-dot-boolean-x29.md

latest2.0 KB
Original Source

BarItems.CreateCheckItem(String, Boolean) Method

Creates a new BarCheckItem and adds it to the collection.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public BarCheckItem CreateCheckItem(
    string caption,
    bool check
)
vb
Public Function CreateCheckItem(
    caption As String,
    check As Boolean
) As BarCheckItem

Parameters

NameTypeDescription
captionString

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

TypeDescription
BarCheckItem

A BarCheckItem object that represents the created bar item.

|

See Also

CreateButton(String)

BarItems Class

BarItems Members

DevExpress.XtraBars Namespace