GetClassType
返回 ApiUnderlineAnnotation 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiUnderlineAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
"underlineAnnot"
示例
检查 PDF 中应用于文本的标记类型。
// Useful for finding out what type of annotation mark has been used in a PDF.
// Determine the kind of highlight or underline effect on text in a PDF.
let doc = Api.GetDocument();
let underlineAnnot = Api.CreateUnderlineAnnot([84, 60, 231, 70]);
let page = doc.GetPage(0);
page.AddObject(underlineAnnot);
console.log(`Annot class type is: ${underlineAnnot.GetClassType()}`);