SelectedShapesCollection.CopyTo Method

Definition

Overloads

CopyTo(DiagramItem[], Int32)

Copies the DiagramItems of the selection to a DiagramItem[] array, starting at a particular Array index.

CopyTo(Array, Int32)

Copies the ShapeElements of the selection to an Array, starting at a particular Array index.

CopyTo(DiagramItem[], Int32)

Copies the DiagramItems of the selection to a DiagramItem[] array, starting at a particular Array index.

public:
 void CopyTo(cli::array <Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^> ^ array, int index);
public void CopyTo (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem[] array, int index);
member this.CopyTo : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem[] * int -> unit
Public Sub CopyTo (array As DiagramItem(), index As Integer)

Parameters

array
DiagramItem[]

The one-dimensional DiagramItem[] array that is the destination of the DiagramItems copied from the selection. The Array must have zero-based indexing.

index
Int32

The zero-based index in array at which copying begins.

Applies to

CopyTo(Array, Int32)

Copies the ShapeElements of the selection to an Array, starting at a particular Array index.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)

Parameters

array
Array

The one-dimensional Array that is the destination of the ShapeElements copied from the selection. The Array must have zero-based indexing.

index
Int32

The zero-based index in array at which copying begins.

Implements

Applies to