RulerLevels Interface

A collection of all the RulerLevel objects on the specified ruler.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("91493491-5A91-11CF-8700-00AA0060263B")> _
Public Interface RulerLevels _
    Inherits Collection
'Usage
Dim instance As RulerLevels
[GuidAttribute("91493491-5A91-11CF-8700-00AA0060263B")]
public interface RulerLevels : Collection

Remarks

Each RulerLevel object represents the first-line and left indent for text at a particular outline level. This collection always contains five members — one for each of the available outline levels.

Examples

Use the Levels property to return the RulerLevels collection. The following example sets the margins for the five outline levels in body text in the active presentation.

With ActivePresentation.SlideMaster.TextStyles(ppBodyStyle).Ruler

    .Levels(1).FirstMargin = 0

    .Levels(1).LeftMargin = 40

    .Levels(2).FirstMargin = 60

    .Levels(2).LeftMargin = 100

    .Levels(3).FirstMargin = 120

    .Levels(3).LeftMargin = 160

    .Levels(4).FirstMargin = 180

    .Levels(4).LeftMargin = 220

    .Levels(5).FirstMargin = 240

    .Levels(5).LeftMargin = 280

End With

See Also

Reference

RulerLevels Members

Microsoft.Office.Interop.PowerPoint Namespace