GetClassType
返回 ApiListboxField 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiListboxField 类的变量。
参数
此方法没有任何参数。
返回值
"listboxField"
示例
识别 PDF 中列表选择字段的对象类型。
// How do I determine what kind of field this is in a PDF?
// Retrieve the classification name for this field in a PDF.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let listboxField = Api.CreateListboxField([10, 10, 160, 100]);
page.AddObject(listboxField);
listboxField.AddOption('Field type is: ' + listboxField.GetClassType());
listboxField.SetValueIndexes([0]);