RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Types.IsRectEmpty Function

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

Pascal
function IsRectEmpty(const Rect: TRect): Boolean;
C++
Boolean IsRectEmpty(const TRect Rect);

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

IsRectEmpty returns true 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 false. Note that this means non-normalized rectangles (rectangles with negative height or width) are considered empty. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!