Copy
创建块级内容控件的副本。忽略批注、脚注引用和复杂域。
语法
expression.Copy();
expression - 表示 ApiBlockLvlSdt 类的变量。
参数
此方法没有任何参数。
返回值
示例
在文档中创建块级内容控件的副本。
// Create a block content control in the current document, copy it, and add a copy to the same document.
// Create a block level container in the document class, add a text to it, and copy it into the same document.
let doc = Api.GetDocument();
let blockLvlSdt = Api.CreateBlockLvlSdt();
let paragraph = blockLvlSdt.GetContent().GetElement(0);
paragraph.AddText("This is an block level content control.");
doc.Push(blockLvlSdt);
doc.Push(blockLvlSdt.Copy());