Region Class

Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  System.DrawingRegion

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public sealed class Region : IDisposable

The Region type exposes the following members.

Constructors
  NameDescription
Public methodRegion
Initializes a new instance of the Region class.
Public methodRegion(GraphicsPath)
Initializes a new instance of the Region class with the specified GraphicsPath.
Public methodRegion(Rectangle)
Initializes a new instance of the Region class from the specified Rectangle structure.
Public methodRegion(RectangleF)
Initializes a new instance of the Region class from the specified RectangleF structure.
Public methodRegion(RegionData)
Initializes a new instance of the Region class from the specified data.
Methods
  NameDescription
Public methodClone
Creates an exact copy of this Region.
Public methodComplement(GraphicsPath)
Updates this Region to contain the portion of the specified GraphicsPath that does not intersect with this Region.
Public methodComplement(Rectangle)
Updates this Region to contain the portion of the specified Rectangle structure that does not intersect with this Region.
Public methodComplement(RectangleF)
Updates this Region to contain the portion of the specified RectangleF structure that does not intersect with this Region.
Public methodComplement(Region)
Updates this Region to contain the portion of the specified Region that does not intersect with this Region.
Public methodDispose
Releases all resources used by this Region.
Public methodEquals(Object) (Inherited from Object.)
Public methodEquals(Region, Graphics)
Tests whether the specified Region is identical to this Region on the specified drawing surface.
Public methodExclude(GraphicsPath)
Updates this Region to contain only the portion of its interior that does not intersect with the specified GraphicsPath.
Public methodExclude(Rectangle)
Updates this Region to contain only the portion of its interior that does not intersect with the specified Rectangle structure.
Public methodExclude(RectangleF)
Updates this Region to contain only the portion of its interior that does not intersect with the specified RectangleF structure.
Public methodExclude(Region)
Updates this Region to contain only the portion of its interior that does not intersect with the specified Region.
Public methodGetBounds
Gets a RectangleF structure that represents a rectangle that bounds this Region on the drawing surface of a Graphics object.
Public methodGetHashCode (Inherited from Object.)
Public methodGetRegionData
Returns a RegionData that represents the information that describes this Region.
Public methodGetRegionScans
Returns an array of RectangleF structures that approximate this Region after the specified matrix transformation is applied.
Public methodGetType (Inherited from Object.)
Public methodIntersect(GraphicsPath)
Updates this Region to the intersection of itself with the specified GraphicsPath.
Public methodIntersect(Rectangle)
Updates this Region to the intersection of itself with the specified Rectangle structure.
Public methodIntersect(RectangleF)
Updates this Region to the intersection of itself with the specified RectangleF structure.
Public methodIntersect(Region)
Updates this Region to the intersection of itself with the specified Region.
Public methodIsEmpty
Tests whether this Region has an empty interior on the specified drawing surface.
Public methodIsInfinite
Tests whether this Region has an infinite interior on the specified drawing surface.
Public methodIsVisible(Point)
Tests whether the specified Point structure is contained within this Region.
Public methodIsVisible(PointF)
Tests whether the specified PointF structure is contained within this Region.
Public methodIsVisible(Rectangle)
Tests whether any portion of the specified Rectangle structure is contained within this Region.
Public methodIsVisible(RectangleF)
Tests whether any portion of the specified RectangleF structure is contained within this Region.
Public methodIsVisible(Single, Single)
Tests whether the specified point is contained within this Region.
Public methodIsVisible(Point, Graphics)
Tests whether the specified Point structure is contained within this Region when drawn using the specified Graphics.
Public methodIsVisible(PointF, Graphics)
Tests whether the specified PointF structure is contained within this Region when drawn using the specified Graphics.
Public methodIsVisible(Rectangle, Graphics)
Tests whether any portion of the specified Rectangle structure is contained within this Region when drawn using the specified Graphics.
Public methodIsVisible(RectangleF, Graphics)
Tests whether any portion of the specified RectangleF structure is contained within this Region when drawn using the specified Graphics.
Public methodIsVisible(Int32, Int32, Graphics)
Tests whether the specified point is contained within this Region object when drawn using the specified Graphics object.
Public methodIsVisible(Single, Single, Graphics)
Tests whether the specified point is contained within this Region when drawn using the specified Graphics.
Public methodIsVisible(Int32, Int32, Int32, Int32)
Tests whether any portion of the specified rectangle is contained within this Region.
Public methodIsVisible(Single, Single, Single, Single)
Tests whether any portion of the specified rectangle is contained within this Region.
Public methodIsVisible(Int32, Int32, Int32, Int32, Graphics)
Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified Graphics.
Public methodIsVisible(Single, Single, Single, Single, Graphics)
Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified Graphics.
Public methodMakeEmpty
Initializes this Region to an empty interior.
Public methodMakeInfinite
Initializes this Region object to an infinite interior.
Public methodToString (Inherited from Object.)
Public methodTransform
Transforms this Region by the specified Matrix.
Public methodTranslate(Int32, Int32)
Offsets the coordinates of this Region by the specified amount.
Public methodTranslate(Single, Single)
Offsets the coordinates of this Region by the specified amount.
Public methodUnion(GraphicsPath)
Updates this Region to the union of itself and the specified GraphicsPath.
Public methodUnion(Rectangle)
Updates this Region to the union of itself and the specified Rectangle structure.
Public methodUnion(RectangleF)
Updates this Region to the union of itself and the specified RectangleF structure.
Public methodUnion(Region)
Updates this Region to the union of itself and the specified Region.
Public methodXor(GraphicsPath)
Updates this Region to the union minus the intersection of itself with the specified GraphicsPath.
Public methodXor(Rectangle)
Updates this Region to the union minus the intersection of itself with the specified Rectangle structure.
Public methodXor(RectangleF)
Updates this Region to the union minus the intersection of itself with the specified RectangleF structure.
Public methodXor(Region)
Updates this Region to the union minus the intersection of itself with the specified Region.
See Also