TabType()

Syntax

TabType(Pos)

Remarks

Returns the alignment of the custom or default tab stop at the position Pos, which is given in points (72 points = 1 inch). If more than one paragraph is selected, TabType() evaluates the setting in the first paragraph.

If there is no tab stop at the position Pos, TabType() returns –1. If there is a tab stop at Pos, TabType() returns one of the following values.

Value

Explanation

0 (zero)

Left-aligned or default

1

Centered

2

Right-aligned

3

Decimal

4

Bar


Example

This example determines whether a tab stop at the three-fourths – inch position
is centered. If it is, the FormatTabs instruction changes the alignment to left alignment.


If TabType(54) = 1 Then
    FormatTabs .Position = "54 pt", .Align = 0
End If

See Also

FormatTabs, NextTab(), PrevTab(), TabLeader$()