Aspose::Words::Document::set_DefaultTabStop method
Document::set_DefaultTabStop method
Sets the interval (in points) between the default tab stops.
void Aspose::Words::Document::set_DefaultTabStop(double value)
Examples
Shows how to set a custom interval for tab stop positions.
auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::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(System::String(u"Hello") + ControlChar::Tab() + u"World!");
builder->Writeln(System::String(u"Hello") + ControlChar::TabChar + u"World!");
See Also
Class Document
Namespace Aspose::Words
Library Aspose.Words for C++