GetClassType
Returns a type of the ApiStrikeoutAnnotation class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiStrikeoutAnnotation class.
Parameters
This method doesn't have any parameters.
Returns
"strikeoutAnnot"
Example
Get the classification code for a strikeout annotation in a PDF
// What is the internal type identifier for a strikeout annotation in a PDF?
// Find and display the class name of a strikeout annotation in a PDF
let doc = Api.GetDocument();
let caretAnnot = Api.CreateCaretAnnot([84, 60, 231, 70]);
let page = doc.GetPage(0);
page.AddObject(caretAnnot);
console.log(`Annot class type is: ${caretAnnot.GetClassType()}`);