ToolBar.ToolBarButtonCollection.ICollection.CopyTo(Array, Int32) 方法

定義

從特定的 ICollection 索引開始,將 Array 的項目複製到 Array

 virtual void System.Collections.ICollection.CopyTo(Array ^ dest, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array dest, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (dest As Array, index As Integer) Implements ICollection.CopyTo

參數

dest
Array

一維 Array,是從 ICollection 複製過來之項目的目的端。 Array 必須有以零為起始的索引。

index
Int32

dest 中以零起始的索引,即開始複製的位置。

實作

備註

這個成員是明確介面成員實作, 它只有在 ToolBar.ToolBarButtonCollection 轉型成 ICollection 介面時才能使用。

適用於