Spread WPF Documentation
Perspective Property
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > View3DSettings Class : Perspective Property
Gets or sets the perspective.
Syntax
'Declaration
 
Public Property Perspective As System.Double
'Usage
 
Dim instance As View3DSettings
Dim value As System.Double
 
instance.Perspective = value
 
value = instance.Perspective
public System.double Perspective {get; set;}

Property Value

The perspective.
Example
This example sets the Perspective property.
GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries series0 = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries();
series0.Name = "Series 0";
series0.Values.Add(1.0);
series0.Values.Add(2.0);
series0.Values.Add(4.0);
series0.Values.Add(8.0);
GrapeCity.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart();   
chart.DataSeries.Add(series0);
chart.ChartType = GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.Pie3D;
chart.Name = "name1";
chart.View3D.Perspective = 10;
chart.View3D.RotationX = 5;
chart.View3D.RotationZ = 5;
chart.View3D.RotationY = 5;
this.gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim series0 As New GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries()
series0.Name = "Series 0"
series0.Values.Add(1.0)
series0.Values.Add(2.0)
series0.Values.Add(4.0)
series0.Values.Add(8.0)
Dim chart As New GrapeCity.Windows.SpreadSheet.Data.SpreadChart()
chart.DataSeries.Add(series0)
chart.ChartType = GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.Pie3D
chart.Name = "name1"
chart.View3D.Perspective = 10
chart.View3D.RotationX = 5
chart.View3D.RotationZ = 5
chart.View3D.RotationY = 5
GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
See Also

Reference

View3DSettings Class
View3DSettings Members