TabStops.Add Method
Publisher Developer Reference |
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
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Position | Required | Variant | The 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"). |
Alignment | Required | PbTabAlignmentType | The alignment setting for the tab stop. |
Leader | Required | PbTabLeaderType | The 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.
Visual Basic for Applications |
---|
|
See Also