ToolStripItemCollection.CopyTo(ToolStripItem[], Int32) 方法

定義

將集合複製到指定之 ToolStripItem 陣列的指定位置中。Copies the collection into the specified position of the specified ToolStripItem array.

public:
 void CopyTo(cli::array <System::Windows::Forms::ToolStripItem ^> ^ array, int index);
public void CopyTo (System.Windows.Forms.ToolStripItem[] array, int index);
override this.CopyTo : System.Windows.Forms.ToolStripItem[] * int -> unit
Public Sub CopyTo (array As ToolStripItem(), index As Integer)

參數

array
ToolStripItem[]

要將集合複製到其中的 ToolStripItem 型別陣列。The array of type ToolStripItem to which to copy the collection.

index
Int32

要在 ToolStripItem 陣列中貼上集合的位置。The position in the ToolStripItem array at which to paste the collection.

適用於