## XmlReader::get_Value method


当在派生类中被重写时，获取当前节点的文本值。

```cpp
virtual String System::Xml::XmlReader::get_Value()=0
```


### ReturnValue

返回的值取决于节点的 [XmlReader::get_NodeType](../get_nodetype/) 值。
## 备注



下表列出了具有可返回值的节点类型。所有其他节点类型返回 [String::Empty](../../../system/string/empty/)。 |||
|-|-|
| 节点类型 | 值 |
| Attribute | 属性的值。 |
| CDATA | CDATA 区段的内容。 |
| Comment | 注释的内容。 |
| DocumentType | 内部子集。 |
| ProcessingInstruction | 整个内容，目标除外。 |
| SignificantWhitespace | 混合内容模型中标记之间的空白。 |
| Text | 文本节点的内容。 |
| Whitespace | 标记之间的空白。 |
| XmlDeclaration | 声明的内容。 |

## 另见

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