Get Started
Documentation

Clear

Clear() → { bool }

Clears the content of row.

Returns:

Type
bool

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oTable = Api.CreateTable(3, 3);
oRow = oTable.GetRow(0);
oRow.GetCell(0).GetContent().GetElement(0).AddText("Clear content");
oRow.Clear();
oDocument.Push(oTable);
builder.SaveFile("docx", "Clear.docx");
builder.CloseFile();