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
- array
Type: array<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.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
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)