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


In This Topic
    Zoom Property
    In This Topic
    The zooming factor applied to the chart camera in percents.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("The zooming factor applied to the chart camera in percents.")>
    <System.ComponentModel.DefaultValueAttribute(100)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property Zoom As System.Single
    'Usage
     
    
    Dim instance As NProjection
    Dim value As System.Single
     
    instance.Zoom = value
     
    value = instance.Zoom
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("The zooming factor applied to the chart camera in percents.")]
    [System.ComponentModel.DefaultValue(100)]
    [System.Xml.Serialization.XmlAttribute()]
    public System.float Zoom {get; set;}
    Remarks
    The default value of this property is 100. In order to zoom the scene twice for example you'll have to modify the value of this property to 200.
    Example
    The following example modifies the zoom applied on the chart camera:
    Dim chartView As NView = (CType(NChartControl.Charts(0), NChart)).View 
    chartView.Zoom = 200 ' zoom the chart twice
    NView chartView = ((NChart)NChartControl.Charts[0]).View;
    chartView.Zoom = 200; // zoom the chart twice
    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