## Array::ForEach method


对指定数组的每个元素执行指定的操作。

```cpp
static void System::Array<T>::ForEach(const ArrayPtr<T> &arr, System::Action<T> action)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| arr | const ArrayPtr\<T\>\& | 目标数组 |
| action | System::Action\<T\> | 对数组每个元素执行的操作 |

## 另见

* Typedef [ArrayPtr](../../arrayptr/)
* Typedef [Action](../../action/)
* Class [Array](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
