Skip to main content
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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

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