ImageGear for .NET
ScrollTo Method (ImGearPageDisplay)




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
 
Public Function ScrollTo( _
   ByVal pageView As IImGearScrollableView, _
   ByVal positionX As Integer, _
   ByVal positionY As Integer _
) As ImGearScrollInfo
'Usage
 
Dim instance As ImGearPageDisplay
Dim pageView As IImGearScrollableView
Dim positionX As Integer
Dim positionY As Integer
Dim value As ImGearScrollInfo
 
value = instance.ScrollTo(pageView, positionX, positionY)
public ImGearScrollInfo ScrollTo( 
   IImGearScrollableView pageView,
   int positionX,
   int positionY
)
public: ImGearScrollInfo ScrollTo( 
   IImGearScrollableView* pageView,
   int positionX,
   int positionY
) 
public:
ImGearScrollInfo ScrollTo( 
   IImGearScrollableView^ pageView,
   int positionX,
   int 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

ImGearPageDisplay Class
ImGearPageDisplay Members
ImGearScrollInfo Structure
IImGearScrollableView Interface

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback