TableRowGroupCollection.CopyTo Method

Definition

Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.

Overloads

CopyTo(Array, Int32)

Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.

CopyTo(TableRowGroup[], Int32)

Copies the contents of the collection and inserts them into a specified TableRowGroup array of starting at a specified index position in the array.

CopyTo(Array, Int32)

Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.

C#
public void CopyTo(Array array, int index);

Parameters

array
Array

A one-dimensional array to which the collection contents will be copied. This array must use zero-based indexing.

index
Int32

A zero-based index in array specifying the position at which to begin inserting the copied collection objects.

Implements

Exceptions

Raised when array includes items that are not compatible with the type TableRowGroup, or if arrayIndex specifies a position that falls outside of the bounds of array.

Raised when array is null.

Raised when arrayIndex is less than 0.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

CopyTo(TableRowGroup[], Int32)

Copies the contents of the collection and inserts them into a specified TableRowGroup array of starting at a specified index position in the array.

C#
public void CopyTo(System.Windows.Documents.TableRowGroup[] array, int index);

Parameters

array
TableRowGroup[]

A one-dimensional TableRowGroup array to which the collection contents will be copied. This array must use zero-based indexing.

index
Int32

A zero-based index in array specifying the position at which to begin inserting the copied collection objects.

Implements

Exceptions

Raised when array includes items that are not compatible with the type TableRowGroup, or if arrayIndex specifies a position that falls outside of the bounds of array.

Raised when array is null.

Raised when arrayIndex is less than 0.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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