SetSelection
Sets page selection.
Syntax
expression.SetSelection(startPoint, endPoint);
expression - A variable that represents a ApiPage class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| startPoint | Required | Point | No description provided. | |
| endPoint | Required | Point | No description provided. |
Returns
boolean
Example
This example selects the text on the page.
- Code
- Result
let doc = Api.GetDocument();
let page = doc.GetPage(0);
page.SetSelection({x: 10, y: 10}, {x: 100, y: 100});
console.log('We selected the text on the page');