Partager via


TextFrame2.Ruler Property (Office)

Returns a Ruler2 object that represents the ruler for the specified text. Read-only

Version Information

Version Added: Office 2010

Syntax

expression .Ruler

expression An expression that returns a TextFrame2 object.

Example

The following code shows how to set a left-aligned tab stop at 2 inches (144 points) for the text in shape one on slide one in the active presentation.

Dim pptSlide As Slide 
Set pptSlide = ActivePresentation.Slides(1) 
pptSlide.Shapes(1).TextFrame2.Ruler.TabStops.Add ppTabStopLeft, 144 

See Also

Concepts

TextFrame2 Object

TextFrame2 Object Members