GetType
获取图章类型。
语法
expression.GetType();
expression - 表示 ApiStampAnnotation 类的变量。
参数
此方法没有任何参数。
返回值
示例
此示例获取图章注释的类型。
let doc = Api.GetDocument();
let stampAnnot = Api.CreateStampAnnot([10, 10, 0, 0], 'D_Reviewed', 'Joe Doe');
let page = doc.GetPage(0);
page.AddObject(stampAnnot);
console.log(`Stamp type is: ${stampAnnot.GetType()}`);