## IDictionary::CopyTo method


将字典内容复制到现有数组元素中。

```cpp
virtual void System::Collections::Generic::IDictionary<TKey, TValue>::CopyTo(ArrayPtr<KeyValuePair<TKey, TValue>> arr, int index) override
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| arr | ArrayPtr\<KeyValuePair\<TKey, TValue\>\> | 目标数组。 |
| 索引 | int | 目标数组起始索引。 |

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [KeyValuePair](../../keyvaluepair/)
* Class [IDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
