Skip to main content

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

Add a picture content control in a document.

// 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();