Class Ruler (PowerPoint VBA)

The class Ruler represents the ruler for the text in the specified shape or for all text in the specified text style. Contains tab stops and the indentation settings for text outline levels.

Set

To use a Ruler class variable it first needs to be instantiated, for example

Dim rlr as Ruler
Set rlr = ActiveWindow.RangeFromPoint.TextFrame.Ruler

The following procedures can be used to set variables of type Ruler: TextFrame.Ruler and TextStyle.Ruler

Levels

Returns a RulerLevels object that represents outline indent formatting.

Dim rlsLevels As RulerLevels
Set rlsLevels = ActiveWindow.RangeFromPoint.TextFrame.Ruler.Levels

Parent

Returns the parent object for the specified object.

TabStops

Returns a TabStops collection that represents the tab stops for the specified text.

Dim tssTabStops As TabStops
Set tssTabStops = ActivePresentation.Slides(1).Shapes(1).TextFrame.Ruler.TabStops