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
)

Parameters

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.

ExceptionCondition
ArgumentNullException

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
Show:
© 2015 Microsoft