System::Xml::XmlTextReader::ReadChars 方法
XmlTextReader::ReadChars method
将元素的文本内容读取到字符缓冲区中。此方法旨在通过连续调用来读取大规模嵌入文本流。
int32_t System::Xml::XmlTextReader::ReadChars(const ArrayPtr<char16_t> &buffer, int32_t index, int32_t count)
| 参数 | 类型 | 描述 |
|---|---|---|
| buffer | const ArrayPtr<char16_t>& | 用于写入文本内容的缓冲区的字符数组。 |
| 索引 | int32_t | 方法可以开始写入文本内容的 buffer 中的位置。 |
| count | int32_t | 写入 buffer 的字符数。 |
ReturnValue
读取的字符数。如果读取器未定位在元素上或当前上下文中没有更多文本内容可返回,则可能为 0。
另见
- Typedef ArrayPtr
- Class XmlTextReader
- Namespace System::Xml
- Library Aspose.Font for C++