## XmlAttributeCollection::CopyTo method


将此集合中的所有[XmlAttribute](../../xmlattribute/)对象复制到给定的数组中。

```cpp
void System::Xml::XmlAttributeCollection::CopyTo(const ArrayPtr<SharedPtr<XmlAttribute>> &array, int32_t index)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 数组 | const ArrayPtr\<SharedPtr\<XmlAttribute\>\>\& | 该数组是从此集合复制的对象的目标。 |
| 索引 | int32_t | 复制开始的数组索引。 |

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlAttribute](../../xmlattribute/)
* Class [XmlAttributeCollection](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Font for C++](../../../)
