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

Bars.Insert(Int32, Bar) Method

Adds a Bar to the Bars collection and puts it at the specific position.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

public void Insert(
    int index,
    Bar bar
)

Parameters

Name Type Description
index Int32

An Int32 value indicating position inside of a Bars collection that the added bar should occupy.

bar Bar

A Bar to be added to the current Bars.

Remarks

Use the Bars.Add method instead, to simply add a Bar to a Bars collection without specifying the desired position. An array of Bars can be added via the Bars.AddRange method.

See Also