ListBox.SelectedObjectCollection.CopyTo(Array, Int32) 方法

定义

将整个集合复制到数组内指定位置的现有数组中。

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

参数

destdestination
Array

要将集合内容复制到的数组。

index
Int32

要将项从集合复制到的目标数组中的位置。

实现

注解

可以使用此方法将多个集合中的选定项合并到单个数组中。

适用于