IShapes.AddPicture Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function AddPicture ( _
Filename As String, _
LinkToFile As MsoTriState, _
SaveWithDocument As MsoTriState, _
Left As Single, _
Top As Single, _
Width As Single, _
Height As Single _
) As Shape
'Usage
Dim instance As IShapes
Dim Filename As String
Dim LinkToFile As MsoTriState
Dim SaveWithDocument As MsoTriState
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim returnValue As Shape
returnValue = instance.AddPicture(Filename, _
LinkToFile, SaveWithDocument, Left, _
Top, Width, Height)
Shape AddPicture(
string Filename,
MsoTriState LinkToFile,
MsoTriState SaveWithDocument,
float Left,
float Top,
float Width,
float Height
)
Parameters
- Filename
Type: System.String
- LinkToFile
Type: Microsoft.Office.Core.MsoTriState
- SaveWithDocument
Type: Microsoft.Office.Core.MsoTriState
- Left
Type: System.Single
- Top
Type: System.Single
- Width
Type: System.Single
- Height
Type: System.Single
Return Value
Type: Microsoft.Office.Interop.Excel.Shape