Table of Contents

Interface IRegionHandler

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to work with region.

public interface IRegionHandler : IDisposable

Methods

Clear()

Clears the region.

ContainsPoint(PointD)

Returns a value indicating whether the given point is contained within the region.

ContainsRect(RectD)

Returns a value indicating whether the given rectangle is contained within the region.

GetBounds()

Gets a RectD structure that represents a rectangle that bounds this Region.

GetHashCode()

Calculates hash code for this object.

IntersectWithRect(RectD)

Updates this Region to the intersection of itself with the specified RectD structure.

IntersectWithRegion(Region)

Updates this Region to the intersection of itself with the specified Region.

IsEmpty()

Returns true if the region is empty, false otherwise.

IsEqualTo(Region)

Gets whether or not this region is equal to other region.

IsOk()

Returns true if the region is ok, false otherwise.

SubtractRect(RectD)

Subtracts a rectangular region from this region.

SubtractRegion(Region)

Subtracts a region from this region.

Translate(double, double)

Offsets the coordinates of this Region by the specified amount.

UnionWithRect(RectD)

Updates this Region to the union of itself with the specified RectD structure.

UnionWithRegion(Region)

Updates this Region to the union of itself with the specified Region.

XorWithRect(RectD)

Updates this Region to the xor of itself with the specified RectD structure.

XorWithRegion(Region)

Updates this Region to the xor of itself with the specified Region.