Determines whether the top, bottom, left, and right member variables are all equal to 0.

syntaxSyntax:
DlxRect.IsRectNull()

Return Value

Returns true if DlxRect's top, left, bottom, and right values are all equal to 0; otherwise false.

Remarks

Differs from IsRectEmpty, which determines whether the width and/or height is 0.

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.IsRectNull(), rectSome.IsRectNull(), rectEmpty.IsRectNull());

See also