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


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 String, _
   ByVal source As Uri, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal width As Double, _
   ByVal height As Double _
) As Picture
'Usage
 
Dim instance As Worksheet
Dim name As String
Dim source As Uri
Dim x As Double
Dim y As Double
Dim width As Double
Dim height As Double
Dim value As Picture
 
value = instance.AddPicture(name, source, x, y, width, height)
public Picture AddPicture( 
   string name,
   Uri source,
   double x,
   double y,
   double width,
   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)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options