DocumentDirection Property

Microsoft Publisher Visual Basic

constant that indicates whether text in the document is read from left to right or from right to left. Read/write.

PbDirectionType can be one of these PbDirectionType constants.
pbDirectionLeftToRight
pbDirectionRightToLeft

expression.DocumentDirection

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

Remarks

The DocumentDirection property affects the way the document is read but not the flow of text in the document. For example, if the document has a binding edge and is printed on both sides of the page, the binding edge for a left-to-right document would be different from the binding edge of a right-to-left document.

To format the direction of text flow, use the DefaultTextFlowDirection property to specify the default text flow for the entire document, or use the Orientation property for an individual text frame to specify a text flow direction other than the default for the specified text frame only.

Example

This example sets the active publication to read from left to right.

Sub SetBiDiText()
    ActiveDocument.DocumentDirection = pbDirectionRightToLeft
End Sub