System::Collections::Generic::List::CopyTo‑metod
Innehåll
[
Dölj
]List::CopyTo(const System::ArrayPtr<T>&) method
Kopierar alla element till befintliga array‑element.
void System::Collections::Generic::List<T>::CopyTo(const System::ArrayPtr<T> &array)
| Parameter | Type | Beskrivning |
|---|---|---|
| array | const System::ArrayPtr<T>& | Array att kopiera element till. |
Se även
- Typedef ArrayPtr
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
List::CopyTo(int, const System::ArrayPtr<T>&, int, int) method
Kopierar element med start från det angivna indexet till befintliga array‑element.
void System::Collections::Generic::List<T>::CopyTo(int index, const System::ArrayPtr<T> &array, int arrayIndex, int count)
| Parameter | Type | Beskrivning |
|---|---|---|
| index | int | Ett 0‑baserat index för elementet i listan som representeras av det aktuella objektet att börja kopiera från |
| array | const System::ArrayPtr<T>& | Array att kopiera element till. |
| arrayIndex | int | Startposition i destinationsarray. |
| count | int | Antal element att kopiera. |
Se även
- Typedef ArrayPtr
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
List::CopyTo(System::ArrayPtr<T>, int) method
Kopierar listelement till befintliga array‑element.
void System::Collections::Generic::List<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex) override
| Parameter | Type | Beskrivning |
|---|---|---|
| array | System::ArrayPtr<T> | Destinationsarray. |
| arrayIndex | int | Startindex för destinationsarrayen. |
Se även
- Typedef ArrayPtr
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++