setTab (NotesRichTextParagraphStyle - JavaScript)

Sets a tab in a rich text paragraph style.

Defined in

NotesRichTextParagraphStyle

Syntax

setTab(position:int, type:int) : void
Parameter Description
int position Position of the 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 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 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.