System.Types.TRectF.NormalizeRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure NormalizeRect;

C++

void NormalizeRect() _ALWAYS_INLINE {

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Types.pas
SystemTypes.h
System.Types TRectF

Description

Normalizes the TRectF object.

Use the NormalizeRect method to normalize a TRectF object.

A normalized TRectF object is a rectangle where the Top is less than the Bottom and the Left is less than the Right.

Several methods of TRectF (Height, Width, IsEmpty, PtInRect, and so on) assume normalized TRectF objects, so use NormalizeRect if the Top is greater than the Bottom or if the Left is greater than the Right.

See Also