TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

AddTabStop

AddTabStop() → { ApiRun }

Adds a tab stop to the current paragraph.

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiRun

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("This is just a sample text. After it three tab stops will be added.");
oParagraph.AddTabStop();
oParagraph.AddTabStop();
oParagraph.AddTabStop();
oParagraph.AddText("This is the text which starts after the tab stops.");
builder.SaveFile("docx", "AddTabStop.docx");
builder.CloseFile();

Resulting document