GetIconType
获取此批注的图标类型。
语法
expression.GetIconType();
expression - 表示 ApiTextAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
示例
读取 PDF 中文本注释使用的图标符号。
// How do I see which icon a text annotation displays in a PDF?
// Find out what symbol appears for an annotation comment in a PDF.
let doc = Api.GetDocument();
let textAnnot = Api.CreateTextAnnot([10, 10, 20, 20]);
textAnnot.SetContents("Annot contents");
let page = doc.GetPage(0);
page.AddObject(textAnnot);
console.log(`Text annot icon type is: ${textAnnot.GetIconType()}`);