setTabs (NotesRichTextParagraphStyle - JavaScript)

Sets tabs at even intervals in a rich text paragraph style.

Defined in

NotesRichTextParagraphStyle

Syntax

setTabs(count:int, startpos:int, interval:int) : void

setTabs(count:int, startpos:int, interval:int, type:int) : void

Parameter Description
int count Number of tabs to be set.
int startpos Position of the first tab. The following constants are available:
  • RichTextParagraphStyle.RULER_ONE_CENTIMETER
  • RichTextParagraphStyle.RULER_ONE_INCH
The unit of measure used by the above constants is a "twip," where one centimeter is 567 twips and one inch is 1440 twips. You can apply arithmetic to the constants to obtain other measurements. For example, RULER_ONE_CENTIMETER * 2 for two centimeters or RULER_ONE_INCH * 0.75 for three-quarters of an inch.
int interval Interval between tabs. The following constants are available:
  • RichTextParagraphStyle.RULER_ONE_CENTIMETER
  • RichTextParagraphStyle.RULER_ONE_INCH
The unit of measure used by the above constants is a "twip," where one centimeter is 567 twips and one inch is 1440 twips. You can apply arithmetic to the constants to obtain other measurements. For example, RULER_ONE_CENTIMETER * 2 for two centimeters or RULER_ONE_INCH * 0.75 for three-quarters of an inch.
int type
  • RichTextParagraphStyle.TAB_CENTER
  • RichTextParagraphStyle.TAB_DECIMAL
  • RichTextParagraphStyle.TAB_LEFT
  • RichTextParagraphStyle.TAB_RIGHT

Usage

See RichTextTab for additional information and an example.

You can apply arithmetic to the position and interval constants to obtain other measurements. For example, RULER_ONE_CENTIMETER * 2 for two centimeters or (int)(RULER_ONE_INCH * 0.75) for three-quarters of an inch. The actual int value is in "twips," where one centimeter is 567 twips and one inch is 1440 twips.