## StringCollection::Contains method


检查容器中是否存在特定字符串。

```cpp
bool System::Collections::Specialized::StringCollection::Contains(const System::String &value) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | const System::String\& | [String](../../../system/string/) 要查找的字符串。 |

### ReturnValue

如果找到字符串则为 true，否则为 false。

## 另见

* Class [String](../../../system/string/)
* Class [StringCollection](../)
* Namespace [System::Collections::Specialized](../../)
* Library [Aspose.Font for C++](../../../)
