defaultTabStop property
Document.defaultTabStop property
Gets or sets the interval (in points) between the default tab stops.
get defaultTabStop(): number
Examples
Shows how to set a custom interval for tab stop positions.
let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);
// Set tab stops to appear every 72 points (1 inch).
builder.document.defaultTabStop = 72;
// Each tab character snaps the text after it to the next closest tab stop position.
builder.writeln("Hello" + aw.ControlChar.tab + "World!");
builder.writeln("Hello" + aw.ControlChar.tabChar + "World!");
See Also
- module Aspose.Words
- class Document
- class TabStopCollection
- class TabStop