Share via


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

  • index
    Type: System.Int32

    The 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