## XmlDocument::CreateWhitespace method


创建一个 [XmlWhitespace](../../xmlwhitespace/) 节点。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 文本 | const String\& | 字符串只能包含以下字符 **'\x20'**、**'\x0d'**、**'\x0a'**、**'\x09'**。 |

### ReturnValue

一个新的 [XmlWhitespace](../../xmlwhitespace/) 节点。

## 另见

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