FormatTabs

Syntax

FormatTabs [.Position = text] [, .DefTabs = number or text] [, .Align = number] [, .Leader = number] [, .Set] [, .Clear] [, .ClearAll]

Remarks

Sets and clears tab stops for the selected paragraphs. The arguments for the FormatTabs statement correspond to the options in the Tabs dialog box (Format menu).

Argument

Explanation

.Position

Position of the tab stop in a text measurement

.DefTabs

Position for default tab stops in the document in points or a text measurement


Argument

Explanation

.Align

Alignment of the tab stop:

0 (zero) Left

1 Center

2 Right

3 Decimal

4 Bar

.Leader

The leader character for the tab stop:

0 (zero) None

1 Period

2 Hyphen

3 Underscore

.Set

Sets the specified custom tab stop.

.Clear

Clears the specified custom tab stop.

.ClearAll

Clears all custom tab stops.


Examples

This example sets a right-aligned tab stop at 1.5 inches:


FormatTabs .Position = "1.5 in", .Align = 2, .Set

The following example clears all custom tab stops:


FormatTabs .ClearAll

See Also

EditFindTabs, EditReplaceTabs, FormatDefineStyleTabs, NextTab(), PrevTab(), TabLeader$(), TabType()