Version

RemoveAt Method (IUIHierarchyNodeList)

Removes the IUIHierarchyNode at the specified index within the list.
Syntax
'Declaration
 
Sub RemoveAt( _
   ByVal index As Integer _
) 
void RemoveAt( 
   int index
)

Parameters

index
The zero-based index of the node being removed from the list.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThrown when the index is outside of the boundaries of nodes contained within the list.
System.NotSupportedExceptionThrown when either of the IsReadOnly or IsFixedSize properties are True.
Remarks

The IUIHierarchyNodeList is comprised of contiguous elements causing the IUIHierarchyNode instances following the removed node to move up one space filling-in the vacancy. Applications retaining indexes to nodes later in the list must refresh (or invalidate) these indexes following one or more removal operations.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also