ToolboxItemCollection.CopyTo(ToolboxItem[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the collection to the specified array beginning with the specified destination index.
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)
Parameters
- array
- ToolboxItem[]
The array to copy to.
- index
- Int32
The index to begin copying to.
Examples
The following code example demonstrates using the CopyTo method of a 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)
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.