Export (0) Print
Expand All

Region.IsEmpty Method

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.


g is null.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft