Get Started
Documentation

Search

Searches for the scope of a table row object. The search results are a collection of ApiRange objects.

Parameters:

Name Type Description
sText string
isMatchCase bool

is case sensitive.

Returns:

Type
Array

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("text");
oRow.GetCell(1).GetContent().GetElement(0).AddText("text");
oRow.GetCell(2).GetContent().GetElement(0).AddText("text");
oDocument.Push(oTable);
oRowSearch = oRow.Search("tex", true);
oRowSearch[1].SetBold("true");
builder.SaveFile("docx", "Search.docx");
builder.CloseFile();