## XmlDocument::CreateTextNode method


创建一个具有指定文本的 [XmlText](../../xmltext/)。

```cpp
virtual SharedPtr<XmlText> System::Xml::XmlDocument::CreateTextNode(const String &text)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| text | const String\& | 用于 [Text](../../../system.text/) 节点的文本。 |

### ReturnValue

新的 [XmlText](../../xmltext/) 节点。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlText](../../xmltext/)
* Class [String](../../../system/string/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Font for C++](../../../)
