RtlRun Method

Microsoft Word Visual Basic

Show All

RtlRun Method

       

Sets the reading order and alignment of the specified run to right-to-left.

expression.RtlRun

expression   Required. An expression that returns a Selection object.

Remarks

For the specified run, this method sets the reading order to right-to-left. If a paragraph in the run with a left-to-right reading order is also left-aligned, this method reverses its reading order and sets its paragraph alignment to right-aligned.

Use the ReadingOrder property to change the reading order without affecting paragraph alignment.

For more information on using Microsoft Word with right-to-left languages, see Word features for right-to-left languages.

Example

This example sets the reading order and alignment of the specified run to right-to-left if the selection isn't styled as "Normal."

If Selection.Style <> "Normal" Then _
    Selection.RtlRun