GetEndStyle
获取线条终点样式。
语法
expression.GetEndStyle();
expression - 表示 ApiLineAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
示例
检查 PDF 中线条的结束装饰类型。
// How do I find what arrow or marker is at the end of a line in a PDF?
// Retrieve the line ending style of a line annotation in a PDF.
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()}`);