GetClassType
返回 ApiCircleAnnotation 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiCircleAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
"circleAnnot"
示例
获取 PDF 文档中圆形注释对象的类类型。
// How can I get the class type of a circle annotation in a PDF document?
// Get the class type of a circle annotation and display it in the PDF.
let doc = Api.GetDocument();
let circleAnnot = Api.CreateCircleAnnot([10, 10, 160, 32]);
let page = doc.GetPage(0);
page.AddObject(circleAnnot);
circleAnnot.SetBorderEffectStyle("cloud");
circleAnnot.SetBorderEffectIntensity(1);
console.log(`Annot class type is: ${circleAnnot.GetClassType()}`);