System.Types.TRect.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 TRect

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