語言

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

目的陣列中用來將物品從集合複製到的位置。

實作

備註

你可以用這個方法將多個收藏中選中的項目合併成一個陣列。

適用於