Ruler TabStops (TabStop) |
标尺上所有 TabStop 对象的集合。
使用 TabStops 属性返回 TabStops 集合。以下示例清除当前演示文稿第一张幻灯片第二个形状中文本的所有制表位。
With ActivePresentation.Slides(1).Shapes(2) _
.TextFrame.Ruler.TabStops
For t = .Count To 1 Step -1
.Item(t).Clear
Next
End With
使用 Add 方法创建制表位并添加到 TabStops 集合。以下示例将制表位添加到当前演示文稿幻灯片母版的正文文本样式中。新制表位在距标尺左边缘 2 英寸(144 磅)处,且为左对齐。
ActivePresentation.SlideMaster _
.TextStyles(ppBodyStyle).Ruler.TabStops.Add ppTabStopLeft, 144