PowerTCP Zip Compression for .NET
RemoveRange Method




The zero-based starting index of the range of elements to remove.
The number of elements to remove.
Removes a range of elements from an ArrayList or collection.
Syntax
<DescriptionAttribute("To remove some items from the collection at a given range of indices. ")>
Public Sub RemoveRange( _
   ByVal index As Integer, _
   ByVal count As Integer _
) 
Dim instance As Archive
Dim index As Integer
Dim count As Integer
 
instance.RemoveRange(index, count)
[Description("To remove some items from the collection at a given range of indices. ")]
public void RemoveRange( 
   int index,
   int count
)
[Description("To remove some items from the collection at a given range of indices. ")]
public: void RemoveRange( 
   int index,
   int count
) 
[Description("To remove some items from the collection at a given range of indices. ")]
public:
void RemoveRange( 
   int index,
   int count
) 

Parameters

index
The zero-based starting index of the range of elements to remove.
count
The number of elements to remove.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionIndex is less than zero.
System.ArgumentExceptionarray is multidimensional.
System.NotSupportedExceptionThe ArrayList is read-only.
Remarks

In collections of contiguous elements, such as lists, the elements that follow the removed element move up to occupy the vacated spot. If the collection is indexed, the indexes of the elements that are moved are also updated. This behavior does not apply to collections where elements are conceptually grouped into buckets, such as a hashtable.

See Also

Reference

Archive Class
Archive Members


PowerTCP Zip for .NET Documentation Version 2.1.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic