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


GrapeCity.Windows.SpreadSheet.Data Namespace > SpreadSurfaceChart Class > SpreadSurfaceChart Constructor : SpreadSurfaceChart Constructor(String,SpreadSurfaceChartType,Double,Double,Double,Double)
The name of spread surface chart.
The type 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 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 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, x, y, width, height)
public SpreadSurfaceChart( 
   System.string name,
   SpreadSurfaceChartType type,
   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.
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.
GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries ds1 = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries();
ds1.Values = new GrapeCity.Windows.SpreadSheet.Data.DoubleSeriesCollection();
ds1.Values.Add(2);
ds1.Values.Add(3);
ds1.Values.Add(5);
GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries ds2 = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries();
ds2.Values = new GrapeCity.Windows.SpreadSheet.Data.DoubleSeriesCollection();
ds2.Values.Add(3);
ds2.Values.Add(6);
ds2.Values.Add(4);
GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries ds3 = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries();
ds3.Values = new GrapeCity.Windows.SpreadSheet.Data.DoubleSeriesCollection();
ds3.Values.Add(5);
ds3.Values.Add(1);
ds3.Values.Add(3);
GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChart schart = new GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChart("SChart", GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChartType.Surface, 0, 0, 300, 300);
schart.DataSeries.Add(ds1);
schart.DataSeries.Add(ds2);
schart.DataSeries.Add(ds3);
this.gcSpreadSheet1.ActiveSheet.SurfaceCharts.Add(schart);
Dim ds1 As New GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries()
ds1.Values = New GrapeCity.Windows.SpreadSheet.Data.DoubleSeriesCollection()
ds1.Values.Add(2)
ds1.Values.Add(3)
ds1.Values.Add(5)
Dim ds2 As New GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries()
ds2.Values = New GrapeCity.Windows.SpreadSheet.Data.DoubleSeriesCollection()
ds2.Values.Add(3)
ds2.Values.Add(6)
ds2.Values.Add(4)
Dim ds3 As New GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries()
ds3.Values = New GrapeCity.Windows.SpreadSheet.Data.DoubleSeriesCollection()
ds3.Values.Add(5)
ds3.Values.Add(1)
ds3.Values.Add(3)
Dim schart As New GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChart("SChart", GrapeCity.Windows.SpreadSheet.Data.SpreadSurfaceChartType.Surface, 0, 0, 300, 300)
schart.DataSeries.Add(ds1)
schart.DataSeries.Add(ds2)
schart.DataSeries.Add(ds3)
GcSpreadSheet1.ActiveSheet.SurfaceCharts.Add(schart)
See Also

Reference

SpreadSurfaceChart Class
SpreadSurfaceChart Members
Overload List