AddPictureContentControl
Adds a new picture content control to the document.
Syntax
expression.AddPictureContentControl(width, height);
expression - A variable that represents a ApiDocument class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| width | Optional | EMU | The optional width of the image. | |
| height | Optional | EMU | The optional height of the image. |
Returns
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();