## Array::ForEach method


Performs specified action on each element of the specified array.

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


| Parameter | Type | Description |
| --- | --- | --- |
| arr | const ArrayPtr\<T\>\& | Target array |
| action | System::Action\<T\> | The action to perform on each element of the array |

## See Also

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