跳到主要内容

AddPictureContentControl

向文档添加新的图片内容控件。

语法

expression.AddPictureContentControl(width, height);

expression - 表示 ApiDocument 类的变量。

参数

名称必需/可选数据类型默认值描述
width可选EMU图像的可选宽度。
height可选EMU图像的可选高度。

返回值

ApiInlineLvlSdt

示例

在文档中添加图片内容控件。

// How do I insert a picture placeholder field into a document?

// Reserve a spot where a reader can later replace the placeholder with their own image in a document.

let doc = Api.GetDocument();
doc.AddPictureContentControl();