Document.DocumentDirection property (Publisher)

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

Syntax

expression.DocumentDirection

expression A variable that represents a Document object.

Return value

PbDirectionType

Remarks

The DocumentDirection property value can be one of the PbDirectionType constants declared in the Microsoft Publisher type library.

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 right to left.

Sub SetBiDiText() 
 ActiveDocument.DocumentDirection = pbDirectionRightToLeft 
End Sub

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.