Command WR GET TAB

4D Write

WR GET TAB

version 6.5


WR GET TAB (area; tabNumber; position; alignment; fillCharacter)

ParameterTypeDescription
areaLongint4D Write area
tabNumberLongintTab number
positionNumberTab position
alignmentIntegerJustification value for the tab
fillCharacterStringFill character

Description

The WR GET TAB command returns the position, the alignment and the fill character for the tab whose number was passed in tabNumber and in the current ruler of area. The current ruler is the ruler in which the insertion point appears, or the last ruler when several paragraphs are selected.

tabNumber: To know the number of tabs in the paragraph, you can use WR Get text property(area;45;Uniform), which will return the number of tab stops. You can then loop through the tab numbers to retrieve all the parameters of the current ruler.

position: position is the distance from the left document margin to the tab stop, expressed in the current default units of the document.

alignment: alignment is the alignment type of the tab.

ValueText alignment
1 Left alignment
2Centered
3Right alignment
4Decimal
5Vertical separator

fillCharacter can be any character whose code is contained between 33 and 127. If fillCharacter is an empty string, then there is no fill character in the tab stop setting.

Examples

See the examples for the WR SET TAB and WR DELETE TAB commands.

See Also

WR GET STYLESHEET TAB, WR SET TAB.