Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange.LtrRun Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sets the direction of text in a text range to read from left to right.

Syntax

expression. LtrRun

expression A variable that represents a TextRange object.

Remarks

This method makes it possible to use text from both left-to-right and right-to-left languages in the same presentation.

Example

The following example finds all of the shapes on slide one that contain text and changes the text to read from left to right.

ActiveWindow.ViewType = ppViewSlide

For Each sh In ActivePresentation.Slides(1).Shapes

    If sh.HasTextFrame Then

         sh.TextFrame.TextRange.LtrRun

    End If

Next

See also

Concepts

TextRange Object

© 2018 Microsoft