GrapeCity.Xaml.SpreadSheet.Data
AddPicture(String,ImageSource,Int32,Double,Int32,Double,Double,Double) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > AddPicture Method : AddPicture(String,ImageSource,Int32,Double,Int32,Double,Double,Double) Method
The name.
The source.
The row.
The row offset.
The column.
The column offset.
The width.
The height.
Adds the picture.
Syntax
'Declaration
 
Public Overloads Function AddPicture( _
   ByVal name As String, _
   ByVal source As ImageSource, _
   ByVal row As Integer, _
   ByVal rowOffset As Double, _
   ByVal column As Integer, _
   ByVal columnOffset As Double, _
   ByVal width As Double, _
   ByVal height As Double _
) As Picture
'Usage
 
Dim instance As Worksheet
Dim name As String
Dim source As ImageSource
Dim row As Integer
Dim rowOffset As Double
Dim column As Integer
Dim columnOffset As Double
Dim width As Double
Dim height As Double
Dim value As Picture
 
value = instance.AddPicture(name, source, row, rowOffset, column, columnOffset, width, height)
public Picture AddPicture( 
   string name,
   ImageSource source,
   int row,
   double rowOffset,
   int column,
   double columnOffset,
   double width,
   double height
)

Parameters

name
The name.
source
The source.
row
The row.
rowOffset
The row offset.
column
The column.
columnOffset
The column offset.
width
The width.
height
The height.
Example
This example uses the AddPicture method.
Uri uri = new Uri("C:\\artwork\\chartarea.png", UriKind.Absolute);
BitmapImage img = new BitmapImage(uri);
gcSpreadSheet1.Sheets[0].AddPicture("picture", img);
//gcSpreadSheet1.Sheets[0].AddPicture("picture", img, 0, 0, 300, 200);
//gcSpreadSheet1.Sheets[0].AddPicture("picture", img, 0, 1, 1, 2, 200, 200);
//gcSpreadSheet1.Sheets[0].AddPicture("picture", img, 0, 5, 1, 5, 6, 10, 5, 10);
Dim uri As New Uri("C:\SpreadWPF2\artwork\chartarea.png", UriKind.Absolute)
Dim img As New BitmapImage(uri)
GcSpreadSheet1.Sheets(0).AddPicture("picture", img)
'gcSpreadSheet1.Sheets(0).AddPicture("picture", img, 0, 0, 300, 200)
'gcSpreadSheet1.Sheets(0).AddPicture("picture", img, 0, 1, 1, 2, 200, 200)
'gcSpreadSheet1.Sheets(0).AddPicture("picture", img, 0, 5, 1, 5, 6, 10, 5, 10)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List