TextDirection Property

Microsoft Publisher Visual Basic

constant indicating the direction in which text flows in the specified paragraph. Read/write.

PbTextDirection can be one of these PbTextDirection constants.
pbTextDirectionLeftToRight Text flows from left to right.
pbTextDirectionMixed Return value indicating a range containing some left-to-right text and some right-to-left text.
pbTextDirectionRightToLeft Text flows from right to left.

expression.TextDirection

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

This property is meant to be used in conjunction with documents that have text in both left-to-right and right-to-left languages. Setting the property to a value that is not in accordance with the text direction dictated by the language in use may have unpredictable results.

Example

The following example changes the text direction of the first shape on page one so that it flows from right-to-left.

ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange _
    .ParagraphFormat.TextDirection = pbTextDirectionRightToLeft