[]
Creates a picture from an existing file.
IShape AddPicture(string fileName, bool linkToFile, bool saveWithDocument, double x, double y, double width = NaN, double height = NaN)
Function AddPicture(fileName As String, linkToFile As Boolean, saveWithDocument As Boolean, x As Double, y As Double, Optional width As Double = NaN, Optional height As Double = NaN) As IShape
| Type | Name | Description |
|---|---|---|
| string | fileName | The file from which the picture is to be created. |
| bool | linkToFile | The file to link to. |
| bool | saveWithDocument | To save the picture with the document. |
| double | x | The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document. |
| double | y | The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document. |
| double | width | The width of the picture, in pixels. |
| double | height | The height of the picture, in pixels. |
| Type | Description |
|---|---|
| IShape | The new picture. |