GetVisiblePortion(Rect) Method

Definition

Assembly PanAndZoom.dll

Gets the intersection of a rectangle with the visible content bounds.

public Rect GetVisiblePortion(Rect rect)

Parameters

rect
Avalonia.Rect

The rectangle in content coordinates.

Returns

Avalonia.Rect
The visible portion of the rectangle.