RulerLevel Interface

Contains first-line indent and hanging indent information for an outline level.

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

Syntax

'Declaration
<GuidAttribute("91493492-5A91-11CF-8700-00AA0060263B")> _
Public Interface RulerLevel
'Usage
Dim instance As RulerLevel
[GuidAttribute("91493492-5A91-11CF-8700-00AA0060263B")]
public interface RulerLevel

Remarks

The RulerLevel object is a member of the RulerLevels collection. The RulerLevels collection contains a RulerLevel object for each of the five available outline levels.

Examples

Use RulerLevels(index), where index is the outline level, to return a single RulerLevel object. The following example sets the first-line indent and hanging indent for outline level one in body text on the slide master for the active presentation.

With ActivePresentation.SlideMaster _

        .TextStyles(ppBodyStyle).Ruler.Levels(1)

    .FirstMargin = 9

    .LeftMargin = 54

End With

The following example sets the first-line indent and hanging indent for outline level one in shape two on slide one in the active presentation.

With ActivePresentation.SlideMaster.Shapes(2) _

        .TextFrame.Ruler.Levels(1)

    .FirstMargin = 9

    .LeftMargin = 54

End With

See Also

Reference

RulerLevel Members

Microsoft.Office.Interop.PowerPoint Namespace