Visual Basic (Declaration) | |
---|---|
Protected Overridable Function ComputeAutoScrollPosition( _ ByVal viewPnt As Point _ ) As Point |
Parameters
- viewPnt
- The mouse point, in control coordinates.
This uses the AutoScrollRegion, ScrollHorizontalLineChange, and ScrollVerticalLineChange properties to calculate a new DiagramPanel.Position. The closer the point is to the edge of the view, the larger a multiple of the ScrollHorizontalLineChange or ScrollVerticalLineChange is used as a scroll step in that direction.