Parameters
- NewPosH
- The new horizontal coordinate, in pixels, where the horizontal scrollbar is to be moved.
- NewPosV
- The new vertical coordinate, in pixels, where the vertical scrollbar is to be moved.
Just to remind you, that all coordinates are 0-based with the origin being in the top left corner in the document pages area and they are related to the current page determined by the CurrentPage property.
Be aware that the ScrollViewer event is not raised at all using this method.
'We assume that the GdViewer1 control has been properly integrated 'and your document has been properly displayed as well. If GdViewer1.HScrollVisible OrElse GdViewer1.VScrollVisible Then GdViewer1.SetHVScrollBarPosition(GdViewer1.GetHScrollBarMaxPosition(), GdViewer1.GetVScrollBarMaxPosition()) End If
//We assume that the GdViewer1 control has been properly integrated //and your document has been properly displayed as well. if (GdViewer1.HScrollVisible || GdViewer1.VScrollVisible) GdViewer1.SetHVScrollBarPosition(GdViewer1.GetHScrollBarMaxPosition(), GdViewer1.GetVScrollBarMaxPosition());