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

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

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

返回一个Ruler2对象,该对象代表指定文本的标尺。只读的。Returns a Ruler2 object that represents the ruler for the specified text. Read-only.

语法Syntax

表达式标尺expression. Ruler

表达式_该表达式返回一个TextFrame2对象。_expression An expression that returns a TextFrame2 object.

返回值Return Value

Ruler2Ruler2

示例Example

此示例演示如何在当前演示文稿第一张幻灯片第一个形状中文本的 2 英寸 (144 磅) 处设置一个左对齐的制表位。This example shows how to set a left-aligned tab stop at 2 inches (144 points) for the text in shape one on slide one in the active presentation.

Public Sub Ruler_Example() 

    Dim pptSlide As Slide 
    Set pptSlide = ActivePresentation.Slides(1) 
    pptSlide.Shapes(1).TextFrame2.Ruler.TabStops.Add ppTabStopLeft, 144 

End Sub

另请参阅See also

概念Concepts

TextFrame2 对象TextFrame2 Object

© 2018 Microsoft