WR ADD STYLESHEET TAB
version 6.5
WR ADD STYLESHEET TAB (area; styleSheetNumber; location{; justification{; fillCharacter}})
Parameter | Type | Description | |
area | Longint | 4D Write area | |
styleSheetNumber | Longint | Stylesheet number | |
location | Number | Tab location | |
justification | Integer | Justification value for the tabulation | |
fillCharacter | String | Selected fill character |
Description
The WR ADD STYLESHEET TAB command allows you to add a new tab stop to the list of tab stops that the parameter styleSheetNumber refers to. Using the WR ADD STYLESHEET TAB command, you can set the tab postion, its type and its fill character.
If there is already tab stop at position, it will be replaced by the tab stop you just defined.
Note: Text that uses the style sheet you want to modify will not be updated unless you call the WR UPDATE STYLESHEET command to update text that uses that style sheet.
position is the distance from the left margin (expressed in the document's default units).
The justification optional parameter determines the tab stop type. You can use the following constants, found in the "WR Tabs" theme:
Constant (Value) | Text alignment |
wr left tab (1) | Left aligned |
wr centered tab(2) | Centered |
wr right tab (3) | Right aligned |
wr decimal tab (4) | Decimal |
wr vertical separator tab (5) | Vertical separator |
If justification is omitted, a left aligned tab is created.
The fillCharacter optional parameter can be any character whose code is between 33 and 127. This character will be added using the same font as the tab stop. If fillCharacter is omitted or if you pass an empty string, no fill character will be inserted.
Example
See the example for the WR UPDATE STYLESHEET command.
See Also
WR ADD TAB, WR DELETE STYLESHEET TAB, WR GET STYLESHEET TAB, WR SET STYLESHEET TAB.