GetRevision
Returns the document revision.
Syntax
expression.GetRevision();
expression
- A variable that represents a ApiCore class.
Parameters
This method doesn't have any parameters.
Returns
string
Example
This example demonstrates how to get the revision of the current document.
- Code
- Result
const doc = Api.GetDocument();
const core = doc.GetCore();
core.SetRevision("Rev. A");
const revision = core.GetRevision();
let paragraph = doc.GetElement(0);
paragraph.AddText("Revision: " + revision);