WR ADD STYLESHEET TAB

4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next

version 6.5


WR ADD STYLESHEET TAB (area; styleSheetNumber; location{; justification{; fillCharacter}})

ParameterTypeDescription
areaLongint4D Write area
styleSheetNumberLongintStylesheet number
locationNumberTab location
justificationIntegerJustification value for the tabulation
fillCharacterStringSelected 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 either use the value or one of the following predefined constants.

ValueConstant Text alignment
1 wr left tabLeft aligned
2wr centered tabCentered
3wr right tabRight aligned
4wr decimal tabDecimal
5wr vertical separator tabVertical separator

If justification is omitted, a left aligned tab is created.

Note: The list of constants and their values is available in the "WR Tabs" constants theme. You can either pass a constant name or its value.

The fillCharacter optional parameter can be any character whose ASCII 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.


4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next