TabStops Object
Publisher Developer Reference |
A collection of TabStop objects that represent the custom and default tabs for a paragraph or group of paragraphs.
Example
Use the Tabs property to return the TabStops collection. The following example clears all the custom tab stops from the first paragraph in the active publication.
Visual Basic for Applications |
---|
|
The following example adds a tab stop positioned at 2.5 inches to the selected paragraphs and then displays the position of each item in the TabStops collection.
Visual Basic for Applications |
---|
|
Use the Add method to add a tab stop. The following example adds two tab stops to the selected paragraphs. The first tab stop is a left-aligned tab with a dotted tab leader positioned at 1 inch (72 points). The second tab stop is centered and is positioned at 2 inches.
Visual Basic for Applications |
---|
|
Use Tabs(index), where index is the location of the tab stop (in points) or the index number, to return a single TabStop object. Tab stops are indexed numerically from left to right along the ruler. The following example removes the first custom tab stop from the first paragraph in the active publication.
Visual Basic for Applications |
---|
|
The following example changes the second tab in the selection to a right-aligned tab stop.
Visual Basic for Applications |
---|
|
See Also