Class Region
Describes the interior of a graphics shape composed of rectangles and paths.
public class Region : HandledObject<IRegionHandler>, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
- Inheritance
-
Region
- Implements
Constructors
- Region(IRegionHandler)
Initializes a new instance of the Region class.
- Region(PointD[], FillMode)
Initializes a new Region from the polygon specified by the
points
array.
- Region(RectD)
Initializes a new Region from the specified RectD structure.
Properties
- IsEmpty
Returns true if the region is empty, false otherwise.
- IsOk
Returns true if the region is ok, false otherwise.
Methods
- Clear()
Clears the region.
- Contains(PointD)
Returns a value indicating whether the given point is contained within the region.
- Contains(RectD)
Returns a value indicating whether the given rectangle is contained within the region.
- CreateHandler()
Creates handler.
- GetBounds()
Gets a RectD structure that represents a rectangle that bounds this Region.
- GetHashCode()
Calculates hash code for this object.
- Intersect(RectD)
Updates this Region to the intersection of itself with the specified RectD structure.
- Intersect(Region)
Updates this Region to the intersection of itself with the specified Region.
- Subtract(RectD)
Subtracts a rectangular region from this region.
- Subtract(Region)
Subtracts a region from this region.
- Translate(double, double)
Offsets the coordinates of this Region by the specified amount.
- Union(RectD)
Updates this Region to the union of itself with the specified RectD structure.
- Union(Region)
Updates this Region to the union of itself with the specified Region.
- Xor(RectD)
Updates this Region to the xor of itself with the specified RectD structure.
- Xor(Region)
Updates this Region to the xor of itself with the specified Region.