GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / RescaleWithCenter Method
the new value for DocScale
a PointF in document coordinates
In This Topic
    RescaleWithCenter Method
    In This Topic
    Change the DocScale, and adjust the DocPosition so that the docPt remains at the center of the view.
    Syntax
    public virtual void RescaleWithCenter( 
       float newscale,
       PointF docPt
    )

    Parameters

    newscale
    the new value for DocScale
    docPt
    a PointF in document coordinates
    Remarks

    The given docPt may not actually remain at the center of the view if the LimitDocPosition method limits where the view can be scrolled to.

    UpdateExtent calls this method, even if the scale is not changing.

    See Also