Select
选择当前表格。
语法
expression.Select();
expression - 表示 ApiTable 类的变量。
参数
此方法没有任何参数。
返回值
boolean
示例
此示例选择当前表格。
// How to select a table with a cursor.
// Add text to the table cell and select it.
let doc = Api.GetDocument();
let tableStyle = doc.CreateStyle("CustomTableStyle", "table");
tableStyle.SetBasedOn(doc.GetStyle("Bordered"));
let table = Api.CreateTable(3, 3);
table.SetWidth("percent", 100);
table.SetStyle(tableStyle);
doc.Push(table);
table.GetCell(0, 0).GetContent().GetElement(0).AddText("This table is selected.");
table.Select();