Share via


TextFrame2.Orientation Property (Office)

Returns or sets text orientation. Read/write

Version Information

Version Added: Office 2010

Syntax

expression .Orientation

expression An expression that returns a TextFrame2 object.

Remarks

The value of the Orientation property can be one of these MsoTextOrientation constants.

  • msoTextOrientationDownward

  • msoTextOrientationHorizontal

  • msoTextOrientationHorizontalRotatedFarEast

  • msoTextOrientationMixed

  • msoTextOrientationUpward

  • msoTextOrientationVertical

  • msoTextOrientationVerticalFarEast

Example

This example shows how to orient the text horizontally in shape one on slide one in the active presentation.

Dim pptSlide As Slide 
Set pptSlide = ActivePresentation.Slides(1) 
pptSlide.Shapes(1).TextFrame2.Orientation = msoTextOrientationHorizontal

Note

Some of these constants may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

See Also

Concepts

TextFrame2 Object

TextFrame2 Object Members