GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DoAutoPan Method
the original panning point, in view coordinates
the current mouse point, in view coordinates
In This Topic
    DoAutoPan Method
    In This Topic
    Start or continue scrolling the view according to the relative position of the viewPnt compared to the originPnt.
    Syntax
    public virtual void DoAutoPan( 
       Point originPnt,
       Point viewPnt
    )

    Parameters

    originPnt
    the original panning point, in view coordinates
    viewPnt
    the current mouse point, in view coordinates
    Remarks

    This uses the same mechanisms as DoAutoScroll -- do not try to auto-scroll and auto-pan at the same time. Automatic panning occurs in the area outside of the region specified by AutoPanRegion surrounding the originPnt.

    This is normally called from GoToolPanning.GoToolPanning.DoMouseMove.

    See Also