4D Write v16

WR GET TAB

Home

 
4D Write v16
WR GET TAB

WR GET TAB 


 

WR GET TAB ( area ; tabNumber ; position ; alignment ; fillCharacter ) 
Parameter Type   Description
area  Longint in 4D Write area
tabNumber  Longint in Tab number
position  Longint in Tab position
alignment  Integer in Justification value for the tab
fillCharacter  String in Fill character

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.
    ValueText alignment
    1 Left alignment
    2Centered
    3Right alignment
    4Decimal
    5Vertical 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.

Example  

See the examples for the WR SET TAB and WR DELETE TAB commands.



See also 

WR GET STYLESHEET TAB
WR SET TAB

 
PROPERTIES 

Product: 4D Write
Theme: WR Tabs
Number: 89457

 
HISTORY 

Created: 4D Write 6.5

 
ARTICLE USAGE

4D Write Language ( 4D Write v16)