PerspectiveAngle Property
In This Topic
The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective
Syntax
'Declaration
<System.ComponentModel.CategoryAttribute("General")>
<System.ComponentModel.DescriptionAttribute("The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective")>
<System.ComponentModel.DefaultValueAttribute(60)>
<System.Xml.Serialization.XmlAttributeAttribute()>
Public Property PerspectiveAngle As System.Single
'Usage
Dim instance As NProjection
Dim value As System.Single
instance.PerspectiveAngle = value
value = instance.PerspectiveAngle
[System.ComponentModel.Category("General")]
[System.ComponentModel.Description("The field of view angle, in degrees when the Projection property is set to ProjectionType.Perspective")]
[System.ComponentModel.DefaultValue(60)]
[System.Xml.Serialization.XmlAttribute()]
public System.float PerspectiveAngle {get; set;}
Example
The following C# example modifies the projection applied on the chart camera and the perspective angle:
Dim chartView As NView = (CType(NChartControl.Charts(0), NChart)).View
chartView.Projection = ProjectionType.Perspective
chartView.PerspectiveAngle = 90
NView 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