Click or drag to resize
Ranorex

GeometryCalculateEnsureVisibleScrollPixels Method (Rectangle, Rectangle)

Calculates scroll pixels for EnsureVisible operations.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Point CalculateEnsureVisibleScrollPixels(
	Rectangle container,
	Rectangle item
)

Parameters

container
Type: System.DrawingRectangle
A container rectangle.
item
Type: System.DrawingRectangle
An item rectangle.

Return Value

Type: Point
The pixels the containers needs to be scrolled in order to make the item visible.
See Also