CanvasShapes.AddPicture Method
Adds a picture to a drawing canvas.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function AddPicture ( _
FileName As String, _
ByRef LinkToFile As Object, _
ByRef SaveWithDocument As Object, _
ByRef Left As Object, _
ByRef Top As Object, _
ByRef Width As Object, _
ByRef Height As Object _
) As Shape
'Usage
Dim instance As CanvasShapes
Dim FileName As String
Dim LinkToFile As Object
Dim SaveWithDocument As Object
Dim Left As Object
Dim Top As Object
Dim Width As Object
Dim Height As Object
Dim returnValue As Shape
returnValue = instance.AddPicture(FileName, _
LinkToFile, SaveWithDocument, Left, _
Top, Width, Height)
Shape AddPicture(
string FileName,
ref Object LinkToFile,
ref Object SaveWithDocument,
ref Object Left,
ref Object Top,
ref Object Width,
ref Object Height
)
Parameters
- FileName
Type: System.String
The path and file name of the picture.
- LinkToFile
Type: System.Object%
A value that indicates whether to link the picture to the file from which it was created. False indicates the picture should be made an independent copy of the file. The default value is False.
- SaveWithDocument
Type: System.Object%
A value that indicates whether to save the linked picture with the document. The default value is False.
- Left
Type: System.Object%
The position, measured in points, of the left edge of the new picture relative to the drawing canvas.
- Top
Type: System.Object%
The position, measured in points, of the top edge of the new picture relative to the drawing canvas.
- Width
Type: System.Object%
The width of the picture, in points.
- Height
Type: System.Object%
The height of the picture, in points.
Return Value
Type: Microsoft.Office.Interop.Word.Shape