Skip to main content
Bar

BarManagerCategoryCollection.Insert(Int32, BarManagerCategory) Method

Adds the given category to the specified position within the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual void Insert(
    int position,
    BarManagerCategory category
)

Parameters

Name Type Description
position Int32

A zero-based integer specifying the category’s position within the collection.

category BarManagerCategory

The BarManagerCategory object to insert.

Remarks

The Insert method inserts a new category at the specified position by moving all the following elements to the end of the collection. If the specified position is equal to the number of elements in the collection, the category is appended to the end.

The added category’s name should be unique. Otherwise, an argument exception will be raised when adding the category to the collection.

See Also