SnapToGrid(Rect) Method

Definition

Assembly PanAndZoom.dll

Snaps a rectangle to the nearest grid points.

public Rect SnapToGrid(Rect rect)

Parameters

rect
Avalonia.Rect

The rectangle to snap.

Returns

Avalonia.Rect
The snapped rectangle.