Share via


TabStops.ClearAll Method

Publisher Developer Reference

Clears all the custom tab stops from the specified paragraphs.

Syntax

expression.ClearAll

expression   A variable that represents a TabStops object.

Remarks

To clear an individual tab stop, use the Clear method of the TabStop object. The ClearAll method doesn't clear the default tab stops. To manipulate the default tab stops, use the DefaultTabStop property for the document.

Example

This example clears all the custom tab stops in the first shape on the first page of the active publication. This example assumes that the specified shape is a text frame and not another type of shape.

Visual Basic for Applications
  Sub ClearAllTabStops()
    ActiveDocument.Pages(1).Shapes(1).TextFrame _
        .TextRange.ParagraphFormat.Tabs.ClearAll
End Sub

See Also