GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / ComputeAutoPanDocPosition Method
The original panning point, in view coordinates.
The mouse point, in view coordinates.
In This Topic
    ComputeAutoPanDocPosition Method
    In This Topic
    This method is called to determine the next position in the document for this view, given a point at which the user is holding the mouse during a pan operation.
    Syntax
    public virtual PointF ComputeAutoPanDocPosition( 
       Point originPnt,
       Point viewPnt
    )

    Parameters

    originPnt
    The original panning point, in view coordinates.
    viewPnt
    The mouse point, in view coordinates.
    Remarks
    This uses the ScrollSmallChange property to calculate a new DocPosition. When the current mouse point is within the AutoPanRegion width or height distance from the originPnt, no scrolling occurs. When the current mouse point is outside of this region, between the AutoPanRegion distance (width or height) and three times that distance, automatic scrolling proceeds at the smallest scrolling increment, ScrollSmallChange. The farther away the viewPnt is from the originPnt, the larger a multiple of the ScrollSmallChange is used as a scroll step in that direction.
    See Also