System.Types.IsRectEmpty

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsRectEmpty(const Rect: TRect): Boolean;
function IsRectEmpty(const Rect: TRectF): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsRectEmpty(const TRect &Rect)/* overload */;

Properties

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

Description

Indicates whether a specified rectangle has a positive width and height.

Call IsRectEmpty to determine whether the rectangle specified by Rect encloses a positive amount of space.

IsRectEmpty returns False if both the width and height of Rect are greater than 0. If either the width or height is less than or equal to 0, IsRectEmpty returns True. Note that this means non-normalized rectangles (rectangles with negative height or width) are considered empty.

See Also