SpreadsheetGear 2023
AddPicture(String,Double,Double) Method


SpreadsheetGear.Shapes Namespace > IShapes Interface > AddPicture Method : AddPicture(String,Double,Double) Method
The filename of the picture to add.
Left edge of the new picture in points.
Top edge of the new picture in points.
Adds the specified picture to the shapes collection at the specified position.
Syntax
'Declaration
 
Overloads Function AddPicture( _
   ByVal filename As System.String, _
   ByVal left As System.Double, _
   ByVal top As System.Double _
) As IShape
'Usage
 
Dim instance As IShapes
Dim filename As System.String
Dim left As System.Double
Dim top As System.Double
Dim value As IShape
 
value = instance.AddPicture(filename, left, top)
IShape AddPicture( 
   System.string filename,
   System.double left,
   System.double top
)

Parameters

filename
The filename of the picture to add.
left
Left edge of the new picture in points.
top
Top edge of the new picture in points.

Return Value

A shape object representing the newly created picture.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IShapes Interface
IShapes Members
Overload List