Skip to main content

Normalize 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)

public Rect Normalize()

Return Value

Rect
Normalized Rect

Remarks

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

See Also

Reference

Rect Structure
Avalonia Namespace