跳到主要内容

GetClassType

返回 ApiStrikeoutAnnotation 类的类型。

语法

expression.GetClassType();

expression - 表示 ApiStrikeoutAnnotation 类的变量。

参数

此方法没有任何参数。

返回值

"strikeoutAnnot"

示例

获取 PDF 中删除线注释的分类代码

// What is the internal type identifier for a strikeout annotation in a PDF?

// Find and display the class name of a strikeout annotation in a PDF

let doc = Api.GetDocument();
let caretAnnot = Api.CreateCaretAnnot([84, 60, 231, 70]);
let page = doc.GetPage(0);
page.AddObject(caretAnnot);
console.log(`Annot class type is: ${caretAnnot.GetClassType()}`);