Skip to main content

GetEndPoint

Gets a line end point.

Syntax

expression.GetEndPoint();

expression - A variable that represents a ApiLineAnnotation class.

Parameters

This method doesn't have any parameters.

Returns

Point

Example

This example gets end point of line annotation.

let doc = Api.GetDocument();
let lineAnnot = Api.CreateLineAnnot([10, 10, 160, 32], {x: 12, y: 12}, {x: 155, y: 30});
lineAnnot.SetEndStyle("openArrow");
let page = doc.GetPage(0);
page.AddObject(lineAnnot);
let endPoint = lineAnnot.GetEndPoint();
console.log(`End point is: x: ${endPoint.x}, y: ${endPoint.y}`);