ListView.ListViewItemCollection.CopyTo(Array, Int32) ListView.ListViewItemCollection.CopyTo(Array, Int32) ListView.ListViewItemCollection.CopyTo(Array, Int32) ListView.ListViewItemCollection.CopyTo(Array, Int32) Method

定义

将整个集合复制到现有数组中,从该数组内的指定位置开始复制。Copies the entire collection into an existing array at a specified location within the array.

public:
 virtual void CopyTo(Array ^ dest, int index);
public void CopyTo (Array dest, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (dest As Array, index As Integer)

参数

dest
Array Array Array Array

Array,表示要将该集合的内容复制到的数组。An Array representing the array to copy the contents of the collection to.

index
Int32 Int32 Int32 Int32

集合中的项将复制到的目标数组中的位置。The location within the destination array to copy the items from the collection to.

实现

注解

您可以使用此方法将多个集合中的选定项组合到一个数组中。You can use this method to combine the selected items from multiple collections into a single array.

适用于