A newer version of this page is available. Switch to the current version.

XYDiagramPaneCollection.Insert(Int32, XYDiagramPane) Method

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

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll


public void Insert(
    int index,
    XYDiagramPane pane
Public Sub Insert(
    index As Integer,
    pane As XYDiagramPane


Name Type Description
index Int32

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

pane XYDiagramPane

An XYDiagramPane object to insert into the collection.


The Insert method allows you to insert a pane 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 XYDiagramPaneCollection.Add and XYDiagramPaneCollection.AddRange methods.

See Also