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. To use a Ruler class variable it first needs to be instantiated, for example


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

Levels

Returns a RulerLevels object that represents outline indent formatting.


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

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