CalculateScrollPosition(PointF,PointF) 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 CalculateScrollPosition( _
ByVal As System.Drawing.PointF, _
ByVal As System.Drawing.PointF _
) As System.Drawing.PointF
public System.Drawing.PointF CalculateScrollPosition(
System.Drawing.PointF ,
System.Drawing.PointF
)
public: System.Drawing.PointF CalculateScrollPosition(
System.Drawing.PointF ,
System.Drawing.PointF
)
public:
System.Drawing.PointF CalculateScrollPosition(
System.Drawing.PointF ,
System.Drawing.PointF
)
Parameters
- currentScrollPosition
- The image viewer scroll position in scroll bar space.
- offset
- The scroll offset in viewer space.
Return Value
The new scroll position by moving the specified scroll position on specified 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: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5
See Also