GetClassType
Returns a type of the ApiListboxField class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiListboxField class.
Parameters
This method doesn't have any parameters.
Returns
"listboxField"
Example
Identify the object type of a list selection field in a 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]);