Table of contents
TOC
折叠目录
展开目录

Ruler.TabStops 属性 (PowerPoint)Ruler.TabStops Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回一个TabStops集合,该集合表示选项卡上指定文本将停止。只读的。Returns a TabStops collection that represents the tab stops for the specified text. Read-only.

语法Syntax

表达式TabStopsexpression. TabStops

表达式_一个表示标尺对象的变量。_expression A variable that represents a Ruler object.

返回值Return Value

TabStopsTabStops

示例Example

下面的例子向当前演示文稿中添加一个有两列文本的幻灯片,并为新建幻灯片的标题设置左对齐的制表符,左对齐标题框,再用刚创建的制表位对齐标题文本。This example adds a slide with two text columns to the active presentation, sets a left-aligned tab stop for the title on the new slide, aligns the title box to the left, and assigns title text utilizing the tab stop just created.

With Application.ActivePresentation.Slides _
        .Add(2, ppLayoutTwoColumnText).Shapes

    With .Title.TextFrame
        With .Ruler
            .Levels(1).FirstMargin = 0
            .TabStops.Add ppTabStopLeft, 310
        End With
        .TextRange.ParagraphFormat.Alignment = ppAlignLeft
        .TextRange = "first column" + Chr(9) + "second column"
    End With

End With

另请参阅See also

概念Concepts

标尺的对象Ruler Object

© 2018 Microsoft