CreatePictureContentControl
Creates a new picture container.
Syntax
expression.CreatePictureContentControl(width, height);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
width | Optional | EMU | The optional image width. | |
height | Optional | EMU | The optional image height. |
Returns
Example
This example shows how to create a picture content control.
- Code
- Result
let doc = Api.GetDocument();
let cc = Api.CreatePictureContentControl(2000000, 2000000);
let paragraph = Api.CreateParagraph();
paragraph.Push(cc);
doc.Push(paragraph);