Rectangle.IsEmpty Property

Gets a value that indicates whether the Rectangle is empty.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public bool IsEmpty { get; }

Property Value

true if the rectangle is empty, otherwise false.

An empty rectangle has all its values set to 0.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions