Table of contents
TOC
Collapse the table of content
Expand the table of content

TabStops.Add Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Adds a new tab stop to the specified TabStops collection.

Syntax

expression. Add( Position, Alignment, Leader)

_expression_A variable that represents a TabStops object.

Parameters

NameRequired/OptionalData TypeDescription
PositionRequiredVariantThe horizontal position of the new tab stop relative to the left edge of the text frame. Numeric values are evaluated in points; strings are evaluated in the units specified and can be in any measurement unit supported by Microsoft Publisher (for example, "2.5 in").
AlignmentRequiredPbTabAlignmentTypeThe alignment setting for the tab stop.
LeaderRequiredPbTabLeaderTypeThe type of leader for the tab stop.

Remarks

Alignment can be one of these PbTabAlignmentType constants.

| pbTabAlignmentCenter| | pbTabAlignmentDecimal| | pbTabAlignmentLeading| | pbTabAlignmentTrailing| Leader can be one of these PbTabLeaderType constants.

| pbTabLeaderBullet| | pbTabLeaderDashes| | pbTabLeaderDot| | pbTabLeaderLine| | pbTabLeaderNone|

Example

The following example adds a new left-aligned tab stop 0.5 inches from the left edge of the specified text frame.

ActiveDocument.Pages(1).Shapes(1).TextFrame _ 
 .TextRange.ParagraphFormat.Tabs _ 
 .Add Position:="0.5 in", _ 
 Alignment:=pbTabAlignmentLeading, _ 
 Leader:=pbTabLeaderNone
© 2018 Microsoft