GanttView for WPF | ComponentOne
C1.WPF.GanttView.4.5.2 Assembly / C1.GanttView Namespace / GroupModelCollection Class / SetItem Method
The zero-based index of the element to replace.
The new value for the element at the specified index. The value can be null for reference types.

In This Topic
    SetItem Method (GroupModelCollection)
    In This Topic
    Replaces the element at the specified index.
    Syntax
    'Declaration
     
    Protected Overrides Sub SetItem( _
       ByVal index As Integer, _
       ByVal item As BaseGroup _
    ) 
    protected override void SetItem( 
       int index,
       BaseGroup item
    )

    Parameters

    index
    The zero-based index of the element to replace.
    item
    The new value for the element at the specified index. 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