GetClassType
返回 ApiDocument 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiDocument 类的变量。
参数
此方法没有任何参数。
返回值
"document"
示例
识别 PDF 文档对象的类型。
// What kind of object am I working with in a PDF?
// Display the classification of a PDF document in a PDF.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let textField = Api.CreateTextField([10, 10, 160, 32]);
page.AddObject(textField);
textField.SetValue(doc.GetClassType());