## Collection::Contains method


检查集合中是否存在该项。

```cpp
bool System::Collections::ObjectModel::Collection<T>::Contains(const T &item) const override
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 项 | const T\& | 要查找的。 |

### ReturnValue

如果项目存在则为 true，否则为 false。

## 另见

* Class [Collection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.Font for C++](../../../)
