Редагувати

Поділитися через


PathSegmentCollection.CopyTo(PathSegment[], Int32) Method

Definition

Copies the entire PathSegmentCollection to a one-dimensional PathSegment array, starting at the specified index of the target array.

public:
 virtual void CopyTo(cli::array <System::Windows::Media::PathSegment ^> ^ array, int index);
public void CopyTo (System.Windows.Media.PathSegment[] array, int index);
abstract member CopyTo : System.Windows.Media.PathSegment[] * int -> unit
override this.CopyTo : System.Windows.Media.PathSegment[] * int -> unit
Public Sub CopyTo (array As PathSegment(), index As Integer)

Parameters

array
PathSegment[]

The array into which the collection's items are to be copied.

index
Int32

The index of array at which to start copying the contents of the PathSegmentCollection.

Implements

Exceptions

array is null.

index is less than zero.

array is multidimensional.

-or-

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

Applies to

See also