Nevron .NET Vision
Nevron.Diagram.WinForm Namespace / NDrawingView Class / Zoom Method / Zoom(Single,NPointF,Boolean) Method
zoom factor
new viewport center
whether to center the viewport around the pin, or scale around it


In This Topic
    Zoom(Single,NPointF,Boolean) Method
    In This Topic
    Applies equal X and Y scales of the view. If center is true, makes the specified point the new viewport center. Otherwise preserves the viewportPin projection in the window
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Zoom( _
       ByVal zoom As System.Single, _
       ByVal viewportPin As NPointF, _
       ByVal center As System.Boolean _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NDrawingView
    Dim zoom As System.Single
    Dim viewportPin As NPointF
    Dim center As System.Boolean
    Dim value As System.Boolean
     
    value = instance.Zoom(zoom, viewportPin, center)
    public virtual System.bool Zoom( 
       System.float zoom,
       NPointF viewportPin,
       System.bool center
    )

    Parameters

    zoom
    zoom factor
    viewportPin
    new viewport center
    center
    whether to center the viewport around the pin, or scale around it
    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