GetClassType
Returns a type of the ApiUnderlineAnnotation class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiUnderlineAnnotation class.
Parameters
This method doesn't have any parameters.
Returns
"underlineAnnot"
Example
This example gets class type of strikeout annotation.
- Code
- Result
let doc = Api.GetDocument();
let strikeoutAnnot = Api.CreateStrikeoutAnnot([84, 60, 231, 70]);
let page = doc.GetPage(0);
page.AddObject(strikeoutAnnot);
console.log(`Annot class type is: ${strikeoutAnnot.GetClassType()}`);