Skip to main content

SeriesTitleCollection.Insert(Int32, SeriesTitle) Method

Inserts the specified series title into the collection at the specified position.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public void Insert(
    int index,
    SeriesTitle title
)

Parameters

Name Type Description
index Int32

A zero-based integer which specifies the position at which the series title is to be inserted.

title SeriesTitle

A SeriesTitle object that specifies the series title to insert into the collection.

Remarks

The Insert method allows you to insert a series title at a specific position. Elements that follow the insertion point are moved down to accommodate the new element.

If the index parameter is equal to or greater than the number of elements in the collection, the new element is appended to the end.

To add a new element(s) to the end of collection, see the SeriesTitleCollection.Add and SeriesTitleCollection.AddRange methods.

See Also