Xceed Chart for WinForms v4.4 Documentation
PerspectiveAngle Property
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > View Class : PerspectiveAngle Property
The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective
Syntax
'Declaration
 
<DescriptionAttribute("The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective")>

<DefaultValueAttribute()>

<CategoryAttribute("General")>

Public Property PerspectiveAngle As Single
'Usage
 
Dim instance As View

Dim value As Single

 

instance.PerspectiveAngle = value

 

value = instance.PerspectiveAngle
[Description("The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective")]

[DefaultValue()]

[Category("General")]

public float PerspectiveAngle {get; set;}
Remarks
The default perspective angle is 65 degrees. Note that this property will accept only values in the range [0.01, 179.99], because values of 0 and 180 are invalid. Try to avoid setting this property to values close to the range because this may result in a deep viewing frustum with lower depth resolution.
Example
The following C# example modifies the projection applied on the chart camera and the perspective angle:
Dim chartView As View = (CType(ChartControl.Charts(0), Chart)).View 

chartView.Projection = ProjectionType.Perspective

chartView.PerspectiveAngle = 90
View chartView = ((NChart)NChartControl.Charts[0]).View;

chartView.Projection = ProjectionType.Perspective;

chartView.PerspectiveAngle = 90;
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

View Class
View Members