 | GeometryCalculateEnsureVisibleScrollPixelsOnScreen Method |
Calculates scroll pixels for EnsureVisible operations in order to make the
item visible on the screen.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static Point CalculateEnsureVisibleScrollPixelsOnScreen(
Rectangle item
)
Public Shared Function CalculateEnsureVisibleScrollPixelsOnScreen (
item As Rectangle
) As Point
Parameters
- item
- Type: System.DrawingRectangle
An item rectangle.
Return Value
Type:
PointThe pixels a container needs to be scrolled in order to make the item visible
on the screen. Note that if you move the container of the item (instead of scrolling),
you have to subtract the returned point from the current location of the container.
See Also