Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RowDefinitionCollection.CopyTo Method

Copies an array of RowDefinition objects to a given index position within a RowDefinitionCollection.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void CopyTo(
	RowDefinition[] array,
	int index
)

Parameters

array
Type: System.Windows.Controls.RowDefinition[]

An array of RowDefinition objects.

index
Type: System.Int32

Identifies the index position within array to which the RowDefinition objects are copied.

Implements

ICollection<T>.CopyTo(T[], Int32)

ExceptionCondition
ArgumentNullException

array is null.

ArgumentException

array is multidimensional.

-or-

The number of elements in the source ICollection is greater than the available space from index to the end of the destination array.

ArgumentOutOfRangeException

index is less than zero.

RowDefinitionCollection uses a zero-based indexing system.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft