PDFView4NET WinForms Edition
ScrollPosition Property




O2S.Components.PDFView4NET Namespace > PDFPageView Class : ScrollPosition Property
Gets or sets the current scroll position.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
Public Property ScrollPosition As Point
'Usage
 
Dim instance As PDFPageView
Dim value As Point
 
instance.ScrollPosition = value
 
value = instance.ScrollPosition
[Browsable(false)]
public Point ScrollPosition {get; set;}
[Browsable(false)]
public: __property Point get_ScrollPosition();
public: __property void set_ScrollPosition( 
   Point value
);
[Browsable(false)]
public:
property Point ScrollPosition {
   Point get();
   void set (    Point value);
}

Property Value

The position of the scrollbars.
Remarks
This property works the same way like the AutoScrollPosition property.
ScrollPosition represents the location of the scrollable control's display rectangle. The X and Y coordinate values retrieved are negative if the control has scrolled away from its starting position (0,0). When you set this property, you must always assign positive X and Y values to set the scroll position relative to the starting position. For example, if you have a horizontal scroll bar and you set x and y to 200, you move the scroll 200 pixels to the right; if you then set x and y to 100, the scroll appears to jump the left by 100 pixels, because you are setting it 100 pixels away from the starting position. In the first case, ScrollPosition returns {-200, 0}; in the second case, it returns {-100,0}.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFPageView Class
PDFPageView Members