Spread WPF Documentation
Perspective Property (View3DSettings)
Example 


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)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

View3DSettings Class
View3DSettings Members

 

 


Copyright © GrapeCity, inc. All rights reserved.