## List::ConvertAll method


创建一个元素已转换为不同类型的列表。

```cpp
template<typename OutputType> SharedPtr<List<OutputType>> System::Collections::Generic::List<T>::ConvertAll(Converter<T, OutputType> converter)
```


| 参数 | 描述 |
| --- | --- |
| OutputType | 输出列表元素类型。 |

| 参数 | 类型 | 描述 |
| --- | --- | --- |
| converter | Converter\<T, OutputType\> | [Converter](../../../system/converter/) 用于项目转换。 |

### ReturnValue

一个新创建的已转换元素列表。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [List](../)
* Typedef [Converter](../../../system/converter/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
