## List::ForEach method


对列表中的所有元素应用操作。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| action | System::Action\<T\> | 要应用的 [Action](../../../system/action/)。 |

## 另见

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