Command WR SET STYLESHEET TAB

4D Write

WR SET STYLESHEET TAB

version 6.5


WR SET STYLESHEET TAB (area; stylesheetNumber; tabNumber; position; alignment; fillChar)

ParameterTypeDescription
areaLongint4D Write area
stylesheetNumberLongintStylesheet number
tabNumberLongintTab number
positionNumberNew tab position
alignmentIntegerNew value for the tab alignment
fillCharStringSelected fill character

Description

The WR SET STYLESHEET TAB command allows you to modify the parameters of the tab stop whose number was passed in tabNumber (tabs are counted left to right) belonging to the style sheet whose number was passed in styleSheetNumber (style sheets are counted top to bottom as shown in the style sheets dialog)). The WR SET STYLESHEET TAB command will move the tab stop to position and will set the fill character as well as the alignment of the tab stop.

This command has no effect on the selected text even if it uses the style sheet being modified.

• If you want to update the text that uses that style sheet, call the WR UPDATE STYLESHEET command after modifying the style sheet definition.

• If you want to immediately apply the new tab properties of the style sheet to both the style sheet and the current selection, use the WR APPLY STYLESHEET command.

If a tab stop already exists at the new location in the style sheet, it will be replaced by the tab stop that is the subject of this command.

position is the distance from the left margin to which you want to move the tab stop. position is expressed in the current default unit for the document. If you do not want to change the position of the tab stop, pass -1 in the position parameter.

alignment specifies the type of alignment you want to select for the tab stop. In order not to modify the tab alignment, pass -1 in this parameter. Otherwise, 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

fillCharacter can be any character whose code is contained between 33 and 127. This character is displayed in the same font as the modified tab stop.

Example

See the example for the WR GET STYLESHEET TAB command.

See Also

WR ADD STYLESHEET TAB, WR DELETE STYLESHEET TAB.