Aracılığıyla paylaş


ToolboxItemCollection.CopyTo(ToolboxItem[], Int32) Yöntem

Tanım

Koleksiyonu belirtilen hedef dizinden başlayarak belirtilen diziye kopyalar.

public:
 void CopyTo(cli::array <System::Drawing::Design::ToolboxItem ^> ^ array, int index);
public void CopyTo (System.Drawing.Design.ToolboxItem[] array, int index);
member this.CopyTo : System.Drawing.Design.ToolboxItem[] * int -> unit
Public Sub CopyTo (array As ToolboxItem(), index As Integer)

Parametreler

array
ToolboxItem[]

Kopyalanacak dizi.

index
Int32

Kopyalamaya başlanacak dizin.

Örnekler

Aşağıdaki kod örneği, yönteminin CopyToToolboxItemCollectionkullanılmasını gösterir.

// Copy the ToolboxItemCollection to the specified array.
array<ToolboxItem^>^items = gcnew array<ToolboxItem^>(collection->Count);
collection->CopyTo( items, 0 );
// Copy the ToolboxItemCollection to the specified array.
ToolboxItem[] items = new ToolboxItem[collection.Count];
collection.CopyTo( items, 0 );
' Copy the ToolboxItemCollection to the specified array.
Dim items(collection.Count) As ToolboxItem
collection.CopyTo(items, 0)

Şunlara uygulanır