Επεξεργασία

Κοινή χρήση μέσω


PointCollection.CopyTo(Point[], Int32) Method

Definition

Copies the items of the PointCollection to an array, starting at the specified array index.

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

Parameters

array
Point[]

The one-dimensional array that is the destination of the items copied from the PointCollection. The array must have zero-based indexing.

index
Int32

The zero-based index in array at which copying begins.

Implements

Exceptions

array is null.

index is less than zero.

array is multidimensional.

-or-

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

Applies to

See also