Spread WPF Documentation
AddPicture(String,Uri,Double,Double,Double,Double) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > AddPicture Method : AddPicture(String,Uri,Double,Double,Double,Double) Method
The name.
The uri source.
The x value.
The y value.
The width.
The height.
Adds the picture.
Syntax
'Declaration
 
Public Overloads Function AddPicture( _
   ByVal name As System.String, _
   ByVal source As System.Uri, _
   ByVal x As System.Double, _
   ByVal y As System.Double, _
   ByVal width As System.Double, _
   ByVal height As System.Double _
) As Picture
'Usage
 
Dim instance As Worksheet
Dim name As System.String
Dim source As System.Uri
Dim x As System.Double
Dim y As System.Double
Dim width As System.Double
Dim height As System.Double
Dim value As Picture
 
value = instance.AddPicture(name, source, x, y, width, height)
public Picture AddPicture( 
   System.string name,
   System.Uri source,
   System.double x,
   System.double y,
   System.double width,
   System.double height
)

Parameters

name
The name.
source
The uri source.
x
The x value.
y
The y value.
width
The width.
height
The height.
Example
This example uses the AddPicture method.
gcSpreadSheet1.Sheets[0].AddPicture("png", new Uri("C:\\artwork\\chartarea.png"));
//gcSpreadSheet1.Sheets[0].AddPicture("png", new Uri("C:\\artwork\\chartarea.png"), 0, 0, 300, 200);
//gcSpreadSheet1.Sheets[0].AddPicture("png", new Uri("C:\\artwork\\chartarea.png"), 0, 1, 1, 2, 200, 200);
//gcSpreadSheet1.Sheets[0].AddPicture("png", new Uri("C:\\artwork\\chartarea.png"), 0, 5, 1, 5, 6, 10, 5, 10);
GcSpreadSheet1.Sheets(0).AddPicture("png", new Uri("C:\artwork\chartarea.png"))
'GcSpreadSheet1.Sheets(0).AddPicture("png", new Uri("C:\artwork\chartarea.png"), 0, 0, 300, 200)
'GcSpreadSheet1.Sheets(0).AddPicture("png", new Uri("C:\artwork\chartarea.png"), 0, 1, 1, 2, 200, 200)
'GcSpreadSheet1.Sheets(0).AddPicture("png", new Uri("C:\artwork\chartarea.png"), 0, 5, 1, 5, 6, 10, 5, 10)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List