TableColumnCollection.RemoveRange(Int32, Int32) Method

Definition

Removes a range of items, specified by beginning index and count, from the collection.

public void RemoveRange (int index, int count);

Parameters

index
Int32

A zero-based index indicating the beginning of a range of items to remove.

count
Int32

The number of items to remove, beginning from the position specified by index.

Exceptions

Raised when index or count is less than zero, or when index is greater than or equal to Count.

Raised when index and count do not specify a valid range in this collection.

Remarks

Indices for remaining collection items may be adjusted to reflect the removed collection items.

Applies to

Producto Versiones
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also