Determines whether DlxRect is empty. DlxRect is empty if the width and/or height are 0.

syntaxSyntax:
DlxRect.IsRectEmpty()

Return Value

Returns true if DlxRect is empty; false if DlxRect is not empty.

Remarks

A rectangle is empty if the width and/or height are 0 or negative. Differs from IsRectNull, which determines whether all coordinates of the rectangle are zero.

Example

  Copy codeCopy code
var rectNone = new DlxRect(0, 0, 0, 0);
var rectSome = new DlxRect(35, 50, 135, 150);
var rectEmpty = new DlxRect(35, 35, 35, 35);
DlxApp.Printf("rectNone=%i, rectSome=%i, rectEmpty=%i", rectNone.IsRectEmpty(), rectSome.IsRectEmpty(), rectEmpty.IsRectEmpty());

See also