語言

ListBox.SelectedIndexCollection.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

儲存開始的目的陣列中的索引。

實作

備註

你可以用這個方法將多個集合中選取的索引合併成一個陣列。

適用於