RectNormalize Method

Normalizes the rectangle so both the Width and Height are positive, without changing the location of the rectangle

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Rect Normalize()

Return Value

Rect
Normalized Rect

Remarks

Empty rect will be return when Rect contains invalid values. Like NaN.

See Also