'Declaration Function AddPicture( _ ByVal fileName As String, _ ByVal linkToFile As Boolean, _ ByVal saveWithDocument As Boolean, _ ByVal x As Double, _ ByVal y As Double, _ Optional ByVal width As Double, _ Optional ByVal height As Double _ ) As IShape
Parameters
- fileName
- The file from which the picture is to be created.
- linkToFile
- The file to link to.
- saveWithDocument
- To save the picture with the document.
- x
- The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document.
- y
- The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document.
- width
- The width of the picture, in pixels.
- height
- The height of the picture, in pixels.
Return Value
The new picture.