 | 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
Syntaxpublic static Point CalculateEnsureVisibleScrollPixels(
Rectangle container,
Rectangle item
)
Public Shared Function CalculateEnsureVisibleScrollPixels (
container As Rectangle,
item As Rectangle
) As Point
Parameters
- container
- Type: System.DrawingRectangle
A container rectangle. - item
- Type: System.DrawingRectangle
An item rectangle.
Return Value
Type:
PointThe pixels the containers needs to be scrolled in order to make the item visible.
See Also