CopyTo Method

RowDefinitionCollection.CopyTo Method (RowDefinition[], Int32)

 

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.

Exception Condition
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
Available since 3.0
Return to top
Show:
© 2016 Microsoft