Region.Equals

Equals(Region, Graphics)

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

public bool Equals(Region region, Graphics g)
ParameterTypeDescription
regionRegionThe Region to test.
gGraphicsA Graphics that represents a drawing surface.

Return Value

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.

Exceptions

exceptioncondition
ArgumentNullExceptiong or region is null.

See Also


Equals(object)

Check if objects are equal.

public override bool Equals(object obj)
ParameterTypeDescription
objObjectThe other object.

Return Value

The equality comparison result.

See Also