GetClassType
返回 ApiHighlightAnnotation 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiHighlightAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
"highlightAnnot"
示例
确定 PDF 中高亮注释的类型。
// What class type does a highlight annotation have in a PDF?
// Check the object classification for a highlight annotation in a PDF.
let doc = Api.GetDocument();
let highlightAnnot = Api.CreateHighlightAnnot([84, 55, 231, 72]);
let page = doc.GetPage(0);
page.AddObject(highlightAnnot);
console.log(`Annot class type is: ${highlightAnnot.GetClassType()}`);