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)

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.

Community Additions

ADD
Show: