Rectangle.IsEmpty

Rectangle.IsEmpty property

Gets a value indicating whether all numeric properties of this Rectangle have values of zero.

public bool IsEmpty { get; }

Return Value

This property returns true if the Width, Height, X, and Y properties of this Rectangle all have values of zero; otherwise, false.

See Also