GetClassType
Returns a type of the ApiButtonField class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiButtonField class.
Parameters
This method doesn't have any parameters.
Returns
"buttonField"
Example
This example gets button field object class type.
- Code
- Result
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let buttonField = Api.CreateImageField([10, 10, 25, 25]);
page.AddObject(buttonField);
console.log('Widget type is: ' + buttonField.GetClassType());