Прочетете на английски Редактиране

Споделяне чрез


TabletDeviceCollection.CopyTo(TabletDevice[], Int32) Method

Definition

Copies all elements in the current collection to the specified one-dimensional array, starting at the specified destination array index.

C#
public void CopyTo(System.Windows.Input.TabletDevice[] array, int index);

Parameters

array
TabletDevice[]

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

index
Int32

The zero-based index in the array parameter where copying begins.

Exceptions

If index + collection count is greater than or equal to array.length.

If array is null.

If index is less than 0 or index is greater than or equal to array.length.

Examples

The following example demonstrates the CopyTo method.

C#
// Copy the collection to array of tablet devices starting at position index
myTabletDeviceCollection.CopyTo(myTabletDeviceArray, index);

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10