Class RulerLevel (PowerPoint VBA)

Contains first-line indent and hanging indent information for an outline level. To use a RulerLevel class variable it first needs to be instantiated, for example


Dim rll as RulerLevel
Set rll = ActiveWindow.RangeFromPoint.TextFrame.Ruler.Levels(Index:=1)

FirstMargin

Returns or sets the first-line indent for the specified outline level, in points.

If a paragraph begins with a bullet, the bullet position is determined by the FirstMargin property, and the position of the first text character in the paragraph is determined by the LeftMargin property.


ActivePresentation.Slides(1).Shapes(1).TextFrame.Ruler.Levels(1).FirstMargin = 9

LeftMargin

Returns or sets the left indent for the specified outline level, in points.

If a paragraph begins with a bullet, the bullet position is determined by the FirstMargin property, and the position of the first text character in the paragraph is determined by the LeftMargin property.


ActivePresentation.Slides(1).Shapes(1).TextFrame.Ruler.Levels(1).LeftMargin = 54