GanttView for WPF | ComponentOne
C1.WPF.GanttView Assembly / C1.GanttView Namespace / GroupModelCollection Class / InsertItem Method
The zero-based index at which item should be inserted.
The object to insert. The value can be null for reference types.

In This Topic
    InsertItem Method (GroupModelCollection)
    In This Topic
    Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index.
    Syntax
    'Declaration
     
    Protected Overrides Sub InsertItem( _
       ByVal index As Integer, _
       ByVal item As BaseGroup _
    ) 
    protected override void InsertItem( 
       int index,
       BaseGroup item
    )

    Parameters

    index
    The zero-based index at which item should be inserted.
    item
    The object to insert. The value can be null for reference types.
    Exceptions
    ExceptionDescription
    Thrown when index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection.Count.
    See Also