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
This example shows how to add a picture content control to a document:
- Code
- Result
let doc = Api.GetDocument();
doc.AddPictureContentControl();