Region.IsEmpty Method (Graphics)


Tests whether this Region has an empty interior on the specified drawing surface.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public bool IsEmpty(
	Graphics g


Type: System.Drawing.Graphics

A Graphics that represents a drawing surface.

Return Value

Type: System.Boolean

true if the interior of this Region is empty when the transformation associated with g is applied; otherwise, false.

Exception Condition

g is null.

The current transformation of the graphics context g is used to compute the region interior on the drawing surface.

.NET Framework
Available since 1.1
Return to top