Aspose::Words::Document::get_DefaultTabStop method

Document::get_DefaultTabStop method

Gets or sets the interval (in points) between the default tab stops.

double Aspose::Words::Document::get_DefaultTabStop()

Examples

Shows how to set a custom interval for tab stop positions.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);

// Set tab stops to appear every 72 points (1 inch).
builder->get_Document()->set_DefaultTabStop(72);

// Each tab character snaps the text after it to the next closest tab stop position.
builder->Writeln(String(u"Hello") + ControlChar::Tab() + u"World!");
builder->Writeln(String(u"Hello") + ControlChar::TabChar + u"World!");

See Also