Leadtools.Controls Namespace > ImageViewer Object : RestrictScrollOffset Method |
function Leadtools.Controls.ImageViewer.restrictScrollOffset( value )
Parameter | Type | Description |
---|---|---|
value | LeadPointD | Scroll position in pixels. |
Type | Description |
---|---|
LeadPointD | The trimmed value. |
This method will check value against 0,0 and the current value of MaximumScrollSize and make sure the value is inside the current scroll range. ScrollByRestrict uses this method to ensure the scrolling is always in the current range regardless of the value of RestrictScroll.