跳到主要内容

GetModDate

Gets annotation last modification date.

Syntax

expression.GetModDate();

expression - A variable that represents a ApiBaseAnnotation class.

Parameters

This method doesn't have any parameters.

Returns

number

Example

This example creates a square annotation and gets its mod date.

let doc = Api.GetDocument();
let squareAnnot = Api.CreateSquareAnnot([10, 10, 160, 32]);
let page = doc.GetPage(0);
page.AddObject(squareAnnot);
console.log(`Annotation mod date is: ${squareAnnot.GetModDate()}`);