GetVersion
返回文档版本。
语法
expression.GetVersion();
expression - 表示 ApiCore 类的变量。
参数
此方法没有任何参数。
返回值
string
示例
此示例演示如何获取当前文档的版本。
const doc = Api.GetDocument();
const core = doc.GetCore();
core.SetVersion("v9.0");
const version = core.GetVersion();
let paragraph = doc.GetElement(0);
paragraph.AddText("Version: " + version);