ImageGear .NET - Updated
ScrollTo Method (IImGearPageDisplay)




ImageGear23.Core Assembly > ImageGear.Display Namespace > IImGearPageDisplay Interface : ScrollTo Method
IImGearScrollableView interface; represents .NET form to draw the image in.
New horizontal scroll position.
New vertical scroll position.
Scrolls the image to the specified position and updates the scrollbars accordingly.
Syntax
'Declaration
 
Function ScrollTo( _
   ByVal pageView As IImGearScrollableView, _
   ByVal positionX As Integer, _
   ByVal positionY As Integer _
) As ImGearScrollInfo
'Usage
 
Dim instance As IImGearPageDisplay
Dim pageView As IImGearScrollableView
Dim positionX As Integer
Dim positionY As Integer
Dim value As ImGearScrollInfo
 
value = instance.ScrollTo(pageView, positionX, positionY)

Parameters

pageView
IImGearScrollableView interface; represents .NET form to draw the image in.
positionX
New horizontal scroll position.
positionY
New vertical scroll position.

Return Value

Instance of ImGearScrollInfo structure object.
Remarks
This method can be used whether the actual scrollbar controls are visible in the Form object or not. X_Pos and Y_Pos both should be in the valid ranges that can be retrieved with GetScrollInfo method.
See Also

Reference

IImGearPageDisplay Interface
IImGearPageDisplay Members
ImGearScrollInfo Structure
IImGearScrollableView Interface