Share via


Options.DefaultPubDirection Property

Publisher Developer Reference

Returns or sets a PbDirectionType constant that represents the default direction in which text flows when a new publication is created. Read/write.

Syntax

expression.DefaultPubDirection

expression   A variable that represents a Options object.

Return Value
PbDirectionType

Remarks

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

This property generates an error if you are not running a bi-directional-enabled version of Microsoft Office Publisher (for example, Arabic).

Example

This example sets the default direction for new publications and text flow in a bi-directional-enabled version of Publisher.

Visual Basic for Applications
  Sub SetDefaultDirection()
    With Options
        .DefaultPubDirection = pbDirectionRightToLeft
        .DefaultTextFlowDirection = pbDirectionRightToLeft
    End With
End Sub

See Also