4D Write v14

WR ADD STYLESHEET TAB

Home

 
4D Write v14
WR ADD STYLESHEET TAB

WR ADD STYLESHEET TAB 


 

WR ADD STYLESHEET TAB ( area ; stylesheetNumber ; location ; justification ; fillCharacter ) 
Parameter Type   Description
area  Longint in 4D Write area
stylesheetNumber  Longint in Stylesheet number
location  Longint in Tab location
justification  Integer in Justification value for the tabulation
fillCharacter  String in Selected fill character

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 Type Value Comment
wr left tab Longint 1 Left aligned
wr centered tab Longint 2 Centered
wr right tab Longint 3 Right aligned
wr decimal tab Longint 4 Decimal
wr vertical separator tab Longint 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.

 
PROPERTIES 

Product: 4D Write
Theme: WR Style Sheet
Number: 89499

 
HISTORY 

Created: 4D Write 6.5

 
SEE ALSO 

WR ADD TAB
WR DELETE STYLESHEET TAB
WR GET STYLESHEET TAB
WR SET STYLESHEET TAB

 
ARTICLE USAGE

4D Write Language ( 4D Write v11.6)
4D Write Language ( 4D Write v12)
4D Write Language ( 4D Write v14)
4D Write Language ( 4D v13)
4D Write Language ( 4D Write v14 R2)
4D Write Language ( 4D Write v14 R3)
4D Write Language ( 4D Write v14 R4)