Ribbon for WinForms | ComponentOne
C1.Framework Namespace / ElementList Class / Insert Method
The zero-based index at which value should be inserted.
The System.Object to insert. The value can be a null reference (Nothing in Visual Basic).

In This Topic
    Insert Method (ElementList)
    In This Topic
    Inserts an element into the System.Collections.ArrayList at the specified index.
    Syntax
    'Declaration
     
    
    Public Overrides Sub Insert( _
       ByVal index As Integer, _
       ByVal value As Object _
    ) 
    public override void Insert( 
       int index,
       object value
    )

    Parameters

    index
    The zero-based index at which value should be inserted.
    value
    The System.Object to insert. The value can be a null reference (Nothing in Visual Basic).
    Exceptions
    ExceptionDescription
    index is less than zero. -or- index is greater than System.Collections.ArrayList.Count.
    The System.Collections.ArrayList is read-only. -or- The System.Collections.ArrayList has a fixed size.
    See Also