GetClassType
Returns a type of the ApiTextWidget class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiTextWidget class.
Parameters
This method doesn't have any parameters.
Returns
"textWidget"
Example
Identify the type of a text input field in a PDF.
// How do I determine what kind of form field this is in a PDF?
// Read the classification of a text widget element in a PDF.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let comboboxField = Api.CreateComboboxField([10, 10, 160, 30]);
page.AddObject(comboboxField);
let widgets = comboboxField.GetAllWidgets();
comboboxField.SetValue(widgets[0].GetClassType());