ListBox.SelectedObjectCollection.CopyTo(Array, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將整個集合複製到陣列中指定位置的現有陣列。
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
目的陣列中用來將物品從集合複製到的位置。
實作
備註
你可以用這個方法將多個收藏中選中的項目合併成一個陣列。