Region::Equals Method (Region^, Graphics^)

 

Tests whether the specified Region is identical to this Region on the specified drawing surface.

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

public:
bool Equals(
	Region^ region,
	Graphics^ g
)

Parameters

region
Type: System.Drawing::Region^

The Region to test.

g
Type: System.Drawing::Graphics^

A Graphics that represents a drawing surface.

Return Value

Type: System::Boolean

true if the interior of region is identical to the interior of this region when the transformation associated with the g parameter is applied; otherwise, false.

Exception Condition
ArgumentNullException

g or region is null.

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

.NET Framework
Available since 1.1
Return to top
Show: