Table of contents
TOC
Collapse the table of content
Expand the table of content

RulerLevel.LeftMargin Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Syntax

expression. LeftMargin

expression A variable that represents a RulerLevel object.

Return Value

Single

Remarks

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.

Note The RulerLevels collection contains five RulerLevel objects, each of which corresponds to one of the possible outline levels. The LeftMargin property value for the RulerLevel object that corresponds to the first outline level has a valid range of (-9.0 to 4095.875). The valid range for the LeftMargin property values for the RulerLevel objects that correspond to the second through the fifth outline levels are determined as follows:

  • The maximum value is always 4095.875.

  • The minimum value is the maximum assigned value between the FirstMargin property and LeftMargin property of the previous level plus 9.

You can use the following equations to determine the minimum value for the LeftMargin property. Index, the index number of the RulerLevel object, indicates the object's corresponding outline level. To determine the minimum LeftMargin property values for the RulerLevel objects that correspond to the second through the fifth outline levels, substitute 2, 3, 4, or 5 for the index placeholder.

Minimum(RulerLevel(index).FirstMargin) = Maximum(RulerLevel(index -1).FirstMargin, RulerLevel(index -1). LeftMargin ) + 9

Minimum (RulerLevel(index). LeftMargin ) = Maximum(RulerLevel(index -1).FirstMargin, RulerLevel(index -1). LeftMargin ) + 9

Example

This 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 Application.ActivePresentation _
        .SlideMaster.TextStyles(ppBodyStyle)
    With .Ruler.Levels(1)
        .FirstMargin = 9
        .LeftMargin = 54
    End With
End With

See also

Concepts

RulerLevel Object

© 2018 Microsoft