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 XP SP2, Windows Vista, Zune

Community Additions