## List::ForEach method


对列表中的所有元素执行操作。

```cpp
void System::Collections::Generic::List<T>::ForEach(System::Action<T> action)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| action | System::Action\<T\> | [Action](../../../system/action/) 要应用。 |

## 另见

* Typedef [Action](../../../system/action/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
