TreeView for WinForms | ComponentOne
C1.Framework Namespace / TreeRowCollection 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 a null reference (Nothing in Visual Basic) for reference types.

In This Topic
    SetItem Method (TreeRowCollection)
    In This Topic
    Replaces the element at the specified index.
    Syntax
    'Declaration
     
    
    Protected Overrides Sub SetItem( _
       ByVal index As Integer, _
       ByVal item As TreeRow _
    ) 
    protected override void SetItem( 
       int index,
       TreeRow 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 a null reference (Nothing in Visual Basic) for reference types.
    Exceptions
    ExceptionDescription
    index is less than zero. -or- index is greater than Count.
    See Also