Skip to main content

AnnotationRepository.Insert(Int32, Annotation) Method

Inserts the specified annotation into the collection at the specified position.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v22.2.dll

NuGet Package: DevExpress.Charts


public void Insert(
    int index,
    Annotation annotation


Name Type Description
index Int32

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

annotation Annotation

An Annotation object to insert into the collection.


The Insert method allows you to insert an annotation 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 AnnotationRepository.Add and AnnotationRepository.AddRange methods.

See Also