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

Ruler2 对象 (办公室)Ruler2 Object (Office)

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

代表指定形状或指定样式中所有文本的标尺。包含大纲文本的制表位和缩进设置。Represents the ruler for the text in the specified shape or for all text in the specified text style. Contains tab stops and the indentation settings for text outline levels.

注解Remarks

使用TextFrame2对象的Ruler2属性返回的Ruler2对象,代表指定形状中的文本的标尺。使用TabStops2属性返回TabStops2对象,该对象包含在标尺上的制表位。使用级别属性返回RulerLevels2对象,该对象包含文本的大纲级别的缩进设置。Use the Ruler2 property of the TextFrame2 object to return the Ruler2 object that represents the ruler for the text in the specified shape. Use the TabStops2 property to return the TabStops2 object that contains the tab stops on the ruler. Use the Levels property to return the RulerLevels2 object that contains the indentation settings for text outline levels.

示例Example

下面的示例在 2 英寸 (144 磅) 处设置一个左对齐的制表位,二个活动 PowerPoint 演示文稿第一张幻灯片上的对象设置悬挂缩进的文本。The following example sets a left-aligned tab stop at 2 inches (144 Points) and sets a hanging indent for the text in object two on slide one in the active PowerPoint presentation.

With ActivePresentation.Slides(1).Shapes(2).TextFrame2.Ruler2 
 .TabStops2.Add ppTabStopLeft, 144 
 .Levels(1).FirstMargin = 0 
 .Levels(1).LeftMargin = 36 
End With 

属性Properties

名称Name
ApplicationApplication
CreatorCreator
级别Levels
ParentParent
TabStopsTabStops

另请参阅See also

其他资源Other resources

对象模型引用Object Model Reference

© 2018 Microsoft