System.Types.NormalizeRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function NormalizeRect(const ARect: TRectF): TRectF;

C++

extern DELPHI_PACKAGE TRectF __fastcall NormalizeRect(const TRectF &ARect)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Types.pas
System.Types.hpp
System.Types System.Types

Description

Normalizes the TRect object.

Use the NormalizeRect method to normalize a TRect object.

Note: A normalized TRect object is a rectangle with Top < Bottom or Left < Right.

Note: Several methods of TRect (Height, Width, IsEmpty, PtInRect, and so on) assume normalized TRect objects, so use NormalizeRect if Top > Bottom or Left > Right.

See Also