←Select platform

ScrollBy Method

Summary

Scrolls the viewer by the specified amount in pixels.

Syntax
C#
VB
C++
public virtual void ScrollBy( 
   LeadPoint point 
) 
Public Overridable Sub ScrollBy( 
   ByVal point As LeadPoint 
) 
public:  
   virtual void ScrollBy( 
      LeadPoint^ point 
   ) 

Parameters

point

The amount by which to scroll the viewer.

Remarks

This method will add point to the current ScrollOffset. Therefore, this method will follow the same rules governing the minimum and maximum values of ScrollOffset.

If the value of ScrollMode is ControlScrollMode is set to false, calling ScrollBy will work with any value since there's no restriction on the scroll offset. The helper methods ScrollByRestrict and RestrictScrollOffset can be used to perform scrolling by a certain amount while virtually restricting the offset.

ImageViewerPanZoomInteractiveMode uses this method to perform its operation.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.