WR GET TAB
version 6.5
WR GET TAB (area; tabNumber; position; alignment; fillCharacter)
Parameter | Type | Description | |
area | Longint | 4D Write area | |
tabNumber | Longint | Tab number | |
position | Number | Tab position | |
alignment | Integer | Justification value for the tab | |
fillCharacter | String | Fill 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.
Value | Text alignment |
1 | Left alignment |
2 | Centered |
3 | Right alignment |
4 | Decimal |
5 | Vertical 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