VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.UI Namespace / ImageViewer Class / CalcualteScrollPosition Method
The image viewer scroll position in scroll bar space.
The scroll offset in viewer space.



In This Topic
    CalcualteScrollPosition Method (ImageViewer)
    In This Topic
    Calculates new scroll position by moving the specified scroll position on specified offset in viewer space.
    Syntax
    'Declaration
     
    Public Function CalcualteScrollPosition( _
       ByVal currentScrollPosition As PointF, _
       ByVal offset As PointF _
    ) As PointF
    public PointF CalcualteScrollPosition( 
       PointF currentScrollPosition,
       PointF offset
    )
    public: PointF CalcualteScrollPosition( 
       PointF currentScrollPosition,
       PointF offset
    ) 
    public:
    PointF CalcualteScrollPosition( 
       PointF currentScrollPosition,
       PointF offset
    ) 

    Parameters

    currentScrollPosition
    The image viewer scroll position in scroll bar space.
    offset
    The scroll offset in viewer space.
    Remarks
    This method should be used if you want to develop custom logic for scrolls of image viewer.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also