GetEndStyle
获取线条终点样式。
语法
expression.GetEndStyle();
expression - 表示 ApiLineAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
示例
获取 PDF 文档中线条注释的终止线条样式。
// How to get the end style for a line annotation in a PDF document?
// Get the end style and display the result in a PDF document.
let doc = Api.GetDocument();
let lineAnnot = Api.CreateLineAnnot([10, 10, 160, 32], {x: 15, y: 15}, {x: 155, y: 30});
let page = doc.GetPage(0);
page.AddObject(lineAnnot);
console.log(`End style is: ${lineAnnot.GetEndStyle()}`);