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

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

實作

備註

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

適用於