Bar

BarItems.CreateButton(String) Method

Creates a new BarButtonItem with the specified caption and adds it to the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public BarButtonItem CreateButton(
    string caption
)
Public Function CreateButton(
    caption As String
) As BarButtonItem

Parameters

Name Type Description
caption String

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

Returns

Type Description
BarButtonItem

A BarButtonItem object that represents the created bar item.

See Also