Share via


TabStops Interface

A collection of all the PpTabStopType objects on one ruler.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("91493493-5A91-11CF-8700-00AA0060263B")> _
Public Interface TabStops _
    Inherits Collection
'Usage
Dim instance As TabStops
[GuidAttribute("91493493-5A91-11CF-8700-00AA0060263B")]
public interface TabStops : Collection

Examples

Use the TabStops property to return the TabStops collection. The following example clears all the tab stops for the text in shape two on slide one in the active presentation.

With ActivePresentation.Slides(1).Shapes(2) _

        .TextFrame.Ruler.TabStops

    For t = .Count To 1 Step -1

        .Item(t).Clear

    Next

End With

Use the Add(PpTabStopType, Single) method to create a tab stop and add it to the TabStops collection. The following example adds a tab stop to the body-text style on the slide master for the active presentation. The new tab stop will be positioned 2 inches (144 points) from the left edge of the ruler and will be left aligned.

ActivePresentation.SlideMaster _

    .TextStyles(ppBodyStyle).Ruler.TabStops.Add ppTabStopLeft, 144

See Also

Reference

TabStops Members

Microsoft.Office.Interop.PowerPoint Namespace