跳到主要内容

AddPictureContentControl

Adds a new picture content control to the document.

Syntax

expression.AddPictureContentControl(width, height);

expression - A variable that represents a ApiDocument class.

Parameters

NameRequired/OptionalData typeDefaultDescription
widthOptionalEMUThe optional width of the image.
heightOptionalEMUThe optional height of the image.

Returns

ApiInlineLvlSdt

Example

This example shows how to add a picture content control to a document:

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