ToolboxItemCollection.CopyTo(ToolboxItem[], Int32) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Kopierar samlingen till den angivna matrisen som börjar med det angivna målindexet.
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)
Parametrar
- array
- ToolboxItem[]
Matrisen som ska kopieras till.
- index
- Int32
Indexet som du vill börja kopiera till.
Exempel
Följande kodexempel visar hur du använder CopyTo metoden för en ToolboxItemCollection.
// 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)