ParagraphFormat.TextDirection property (Publisher)
Returns or sets a PbTextDirection constant indicating the direction in which text flows in the specified paragraph. Read/write.
Syntax
expression.TextDirection
expression A variable that represents a ParagraphFormat object.
Return value
PbTextDirection
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.
The TextDirection property value can be one of the PbTextDirection constants declared in the Microsoft Publisher type library.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.