Share via


ShapeCollection.CopyTo Method

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

'Declaration
Public Sub CopyTo ( _
    array As Shape(), _
    index As Integer _
)
public void CopyTo(
    Shape[] array,
    int index
)
public:
void CopyTo(
    array<Shape^>^ array, 
    int index
)
member CopyTo : 
        array:Shape[] * 
        index:int -> unit
public function CopyTo(
    array : Shape[], 
    index : int
)

Parameters

  • index
    Type: 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.

.NET Framework Security

See Also

Reference

ShapeCollection Class

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

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)