GetClassType
Returns a type of the ApiHighlightAnnotation class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiHighlightAnnotation class.
Parameters
This method doesn't have any parameters.
Returns
"highlightAnnot"
Example
Retrieve the class type of a highlight annotation in a PDF document.
// How to identify the class type of a highlight annotation in a PDF document?
// Obtain the class type identifier of a highlight annotation object in a PDF document.
let doc = Api.GetDocument();
let highlightAnnot = Api.CreateHighlightAnnot([84, 55, 231, 72]);
let page = doc.GetPage(0);
page.AddObject(highlightAnnot);
console.log(`Annot class type is: ${highlightAnnot.GetClassType()}`);