Skip to main content

Select

Selects the current table cell.

Syntax​

expression.Select();

expression - A variable that represents an ApiTableCell class.

Parameters​

This method doesn't have any parameters.

Returns​

boolean

Example​

Select a table cell in a PDF to make it the current selection.

// Programmatically select a single cell inside a table in a PDF.

// Create a table, select one of its cells, then change its background color.

const doc = Api.GetDocument();
const page = doc.GetPage(0);

const table = Api.CreateTable(3, 3);
page.AddObject(table);
const cell = table.GetRow(1).GetCell(1);
cell.Select();
cell.SetBackgroundColor(Api.RGB(0, 122, 204));