GetClassType
返回 ApiRadiobuttonField 类的类型。
语法
expression.GetClassType();
expression - 表示 ApiRadiobuttonField 类的变量。
参数
此方法没有任何参数。
返回值
"radiobuttonField"
示例
识别 PDF 中单选按钮字段的对象类型。
// How do I determine the object type of a radio button field in a PDF?
// Find the classification name for a radio button field in a PDF.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let radiobuttonField = Api.CreateRadiobuttonField([10, 10, 25, 25]);
page.AddObject(radiobuttonField);
console.log('Field type is: ' + radiobuttonField.GetClassType());