DesignerVerbCollection.CopyTo(DesignerVerb[], Int32) Метод

Определение

Копирует элементы коллекции в указанный массив, начиная с указанного DesignerVerb целевого индекса.

public:
 void CopyTo(cli::array <System::ComponentModel::Design::DesignerVerb ^> ^ array, int index);
public void CopyTo(System.ComponentModel.Design.DesignerVerb?[] array, int index);
public void CopyTo(System.ComponentModel.Design.DesignerVerb[] array, int index);
member this.CopyTo : System.ComponentModel.Design.DesignerVerb[] * int -> unit
Public Sub CopyTo (array As DesignerVerb(), index As Integer)

Параметры

array
DesignerVerb[]

Массив для копирования элементов коллекции в.

index
Int32

Целевой индекс, в который начинается копирование.

Примеры

В следующем примере кода показано, как скопировать коллекцию DesignerVerb объектов в массив.

// Copies the contents of the collection, beginning at index 0,
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection->CopyTo( verbs, 0 );
// Copies the contents of the collection, beginning at index 0, 
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection.CopyTo( verbs, 0 );
' Copies the contents of the collection, beginning at index 0, 
' to the specified DesignerVerb array.
' 'verbs' is a DesignerVerb array.
collection.CopyTo(verbs, 0)

Применяется к