GetEndStyle
获取线条终点样式。
语法
expression.GetEndStyle();
expression - 表示 ApiPolyLineAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
示例
获取 PDF 文档中折线注释的线条终止样式。
// How to get the end style for a polyline annotation in a PDF document?
// Get the end style and display the result in a PDF document.
let doc = Api.GetDocument();
let vertices = [{x: 100, y: 10}, {x: 150, y: 100}, {x: 50, y: 100}];
let polylineAnnot = Api.CreatePolyLineAnnot([40, 5, 160, 110], vertices);
polylineAnnot.SetBorderColor(Api.RGB(255, 0, 0));
let page = doc.GetPage(0);
page.AddObject(polylineAnnot);
console.log(`Default line end style is: ${polylineAnnot.GetEndStyle()}`);