## XmlConvert::ToInt16 method


将 [String](../../../system/string/) 转换为 [Int16](../../../system/int16/) 等价类型。

```cpp
static int16_t System::Xml::XmlConvert::ToInt16(const String &s)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| s | const String\& | 要转换的字符串。 |

### ReturnValue

字符串的 [Int16](../../../system/int16/) 等价类型。

## 另见

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
