Export (0) Print
Expand All

Document.DocumentDirection Property

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

Visual Basic for Applications
Sub SetBiDiText()
    ActiveDocument.DocumentDirection = pbDirectionRightToLeft
End Sub



Community Additions

ADD
Show:
© 2014 Microsoft