Selection 属性 (Word)Selection.XML property (Word)

返回一个字符串, 表示指定对象中的 XML 文本。Returns a String that represents the XML text in the specified object. .


表达式XML (DataOnly)expression.XML (DataOnly)

_表达式_一个返回Selection对象的表达式。expression An expression that returns a Selection object.


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
DataOnlyDataOnly 可选Optional BooleanBoolean True 将返回而不使用 Word XML 标记的 xml 文本。True returns the text of the XML without the Word XML markup. 默认设置为 FalseThe default setting is False.

另请参阅See also

Selection 对象Selection Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.