Click or drag to resize
Ranorex

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
Syntax
public static Point CalculateEnsureVisibleScrollPixelsOnScreen(
	Rectangle item
)

Parameters

item
Type: System.DrawingRectangle
An item rectangle.

Return Value

Type: Point
The 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