TextFrame2.Orientation Property
Returns or sets text orientation. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property Orientation As MsoTextOrientation
Get
Set
'Usage
Dim instance As TextFrame2
Dim value As MsoTextOrientation
value = instance.Orientation
instance.Orientation = value
MsoTextOrientation Orientation { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoTextOrientation
MsoTextOrientation
Remarks
The value of the Orientation property can be one of these MsoTextOrientation constants.
msoTextOrientationDownward |
msoTextOrientationHorizontal |
msoTextOrientationHorizontalRotatedFarEast |
msoTextOrientationMixed |
msoTextOrientationUpward |
msoTextOrientationVertical |
msoTextOrientationVerticalFarEast |
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.
Examples
This example shows how to orient the text horizontally in shape one on slide one in the active presentation.
Public Sub Orientation_Example()
Dim pptSlide As Slide
Set pptSlide = ActivePresentation.Slides(1)
pptSlide.Shapes(1).TextFrame2.Orientation = msoTextOrientationHorizontal
End Sub