DesignerVerbCollection.CopyTo(DesignerVerb[], Int32) Метод
Определение
Копирует элементы коллекции в заданный массив объектов DesignerVerb, начиная с заданного индекса назначения.Copies the collection members to the specified DesignerVerb array beginning at the specified destination index.
public:
void CopyTo(cli::array <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[]
Массив, в который выполняется копирование элементов коллекции.The array to copy collection members to.
- index
- Int32
Индекс в массиве назначения, начиная с которого нужно вставлять копируемые элементы коллекции.The destination index to begin copying to.
Примеры
В следующем примере кода показано, как скопировать коллекцию DesignerVerb объектов в массив.The following code example demonstrates how to copy a collection of DesignerVerb objects to an array.
// 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)