跳到主要内容

Save

保存对指定文档的更改。

语法

expression.Save();

expression - 表示 Api 类的变量。

参数

此方法没有任何参数。

返回值

boolean

示例

保存对指定文档的更改。

// Add a text to the first paragraph of the document and save these changes.

// How to save changes made to the paragraph object in a document.

let paragraph = Api.GetDocument().GetElement(0);
paragraph.AddText("This sample text is saved to the document.");
Api.Save();