ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / LayerCollection Class / Insert Method
A zero-based System.Int32 index indicating the position at which to insert the Layer object.
A Layer object to insert.
Example

In This Topic
    Insert Method (LayerCollection)
    In This Topic
    Inserts a new Layer into the LayerCollection at the specified location.
    Syntax
    'Declaration
     
    Public Sub Insert( _
       ByVal index As Integer, _
       ByVal item As Layer _
    ) 
    public void Insert( 
       int index,
       Layer item
    )

    Parameters

    index
    A zero-based System.Int32 index indicating the position at which to insert the Layer object.
    item
    A Layer object to insert.
    Example
    LayerCollection collection = new LayerCollection(_report);
    collection.Insert(0, new Layer("Layer2"));
    See Also