Nevron .NET Vision
Nevron.GraphicsCore Namespace / NProjection Class / Rotation Property
Example


In This Topic
    Rotation Property (NProjection)
    In This Topic
    The rotation of the viewpoint in degrees.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("The rotation of the viewpoint in degrees.")>
    <System.ComponentModel.DefaultValueAttribute(0)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property Rotation As System.Single
    'Usage
     
    
    Dim instance As NProjection
    Dim value As System.Single
     
    instance.Rotation = value
     
    value = instance.Rotation
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("The rotation of the viewpoint in degrees.")]
    [System.ComponentModel.DefaultValue(0)]
    [System.Xml.Serialization.XmlAttribute()]
    public System.float Rotation {get; set;}
    Remarks
    The default value is 0 degrees ensuring that the chart is not rotated. To look at the chart from the left you'll have to modify the rotation to 90 degrees. The rotation and elevation properties define the polar coordinates of camera relative to the chart center point.
    Example
    The following example modifies the rotation applied on the chart camera:
    Dim chartView As NView = (CType(NChartControl.Charts(0), NChart)).View 
    chartView.Rotation = 90
    NView chartView = ((NChart)NChartControl.Charts[0]).View;
    chartView.Rotation = 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