ShapeCollection.CopyTo Method (Shape[], Int32)
Copies the whole ShapeCollection to a compatible one-dimensional Array, starting at the specified index of the destination array.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
public void CopyTo(
Shape[] array,
int index
)
public:
void CopyTo(
array<Shape^>^ array,
int index
)
member CopyTo :
array:Shape[] *
index:int -> unit
Public Sub CopyTo (
array As Shape(),
index As Integer
)
Parameters
array
Type: Microsoft.VisualBasic.PowerPacks.Shape[]The one-dimensional Array that is the destination of the elements copied from the ShapeCollection. The Array must have zero-based indexing.
index
Type: System.Int32The zero-based index in array at which copying starts.
Remarks
This method uses Copy to copy the elements.
The elements are copied to the Array in the same order in which the enumerator iterates through the ShapeCollection.
See Also
ShapeCollection Class
Microsoft.VisualBasic.PowerPacks Namespace
Introduction to the Line and Shape Controls (Visual Studio)
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)
Return to top