Spread Silverlight Documentation
SpreadSurfaceChart Constructor(String,SpreadSurfaceChartType,String,Double,Double,Double,Double)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > SpreadSurfaceChart Class > SpreadSurfaceChart Constructor : SpreadSurfaceChart Constructor(String,SpreadSurfaceChartType,String,Double,Double,Double,Double)
The name of spread surface chart.
The type of spread surface chart.
The data formula of spread surface chart.
The x location of spread surface chart.
The y location of spread surface chart.
The width of spread surface chart.
The height of spread surface chart.
Initializes a new instance of the SpreadSurfaceChart class.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As System.String, _
   ByVal type As SpreadSurfaceChartType, _
   ByVal dataFormula As System.String, _
   ByVal x As System.Double, _
   ByVal y As System.Double, _
   ByVal width As System.Double, _
   ByVal height As System.Double _
)
'Usage
 
Dim name As System.String
Dim type As SpreadSurfaceChartType
Dim dataFormula As System.String
Dim x As System.Double
Dim y As System.Double
Dim width As System.Double
Dim height As System.Double
 
Dim instance As New SpreadSurfaceChart(name, type, dataFormula, x, y, width, height)
public SpreadSurfaceChart( 
   System.string name,
   SpreadSurfaceChartType type,
   System.string dataFormula,
   System.double x,
   System.double y,
   System.double width,
   System.double height
)

Parameters

name
The name of spread surface chart.
type
The type of spread surface chart.
dataFormula
The data formula of spread surface chart.
x
The x location of spread surface chart.
y
The y location of spread surface chart.
width
The width of spread surface chart.
height
The height of spread surface chart.
Example
This example creates a surface chart.
object[,] values = { { "s1", 50, 25, 55, 30, 26 }, { "s2", 92, 14, 15, 24, 65 }, { "s3", 65, 26, 70, 60, 43 } };
gcSpreadSheet1.Sheets[0].SetArray(0, 0, values); 
GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChart schart = new GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChart("SChart", GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChartType.Surface, "Sheet1!$A$1:$F$3", 0, 0, 300, 300);
this.gcSpreadSheet1.ActiveSheet.SurfaceCharts.Add(schart);
Dim values As Object(,) = {{"s1", 50, 25, 55, 30, 26}, {"s2", 92, 14, 15, 24, 65}, {"s3", 65, 26, 70, 60, 43}} 
GcSpreadSheet1.Sheets(0).SetArray(0, 0, values)
Dim schart As New GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChart("SChart", GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChartType.Surface, "Sheet1!$A$1:$F$3", 0, 0, 300, 300)
GcSpreadSheet1.ActiveSheet.SurfaceCharts.Add(schart)
See Also

Reference

SpreadSurfaceChart Class
SpreadSurfaceChart Members
Overload List