LtrPara 方法 (Word)Selection.LtrPara method (Word)

将指定段落的对齐方式和阅读顺序设置为从左向右。Sets the reading order and alignment of the specified paragraphs to left-to-right.

语法Syntax

expression.expression. LtrPara

_表达式_是必需的。expression Required. 表示 Selection 对象的变量。A variable that represents a Selection object.

备注Remarks

对于所有已选定的段落,此方法将其阅读顺序设置为从左向右。For all selected paragraphs, this method sets the reading order to left-to-right. 如果一个段落的阅读顺序是从右向左并且为右对齐方式,则此方法会将其设置为相反的阅读顺序,并将其对齐方式设置为左对齐。If a paragraph with a right-to-left reading order is also right-aligned, this method reverses its reading order and sets its paragraph alignment to left-aligned.

使用ReadingOrder属性可以更改阅读顺序, 而不影响段落的对齐方式。Use the ReadingOrder property to change the reading order without affecting paragraph alignment.

示例Example

如果当前选定内容的样式为“Normal”,则本示例将其阅读顺序和对齐方式设置为从左向右。This example sets the reading order and alignment of the current selection to left-to-right if the selection is styled as "Normal."

If Selection.Style = "Normal" Then _ 
 Selection.LtrPara

另请参阅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.