Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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