Share via


ParagraphFormat.TextDirection Property (PowerPoint)

Returns or sets the text direction for the specified paragraph. Read/write.

Syntax

expression .TextDirection

expression A variable that represents a ParagraphFormat object.

Return Value

PpDirection

Remarks

The default value depends on the language support you have selected or installed.

The value of the TextDirection property can be one of these PpDirection constants.

ppDirectionLeftToRight

ppDirectionMixed

ppDirectionRightToLeft

Example

This example displays the text direction for the paragraphs in shape two on slide one in the active presentation.

MsgBox ActivePresentation.Slides(1).Shapes(2).TextFrame.TextRange _

    .ParagraphFormat.TextDirection

See Also

Concepts

ParagraphFormat Object

ParagraphFormat Object Members