System.Drawing.Region Class

Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited.

See Also: Region Members


public sealed class Region : MarshalByRefObject, IDisposable


A region is scalable because its coordinates are specified in world coordinates. On a drawing surface, however, its interior is dependent on the size and shape of the pixels representing it. An application can use regions to clip the output of drawing operations. These regions are called clipping regions. For more information on using regions for clipping, see How To: Use Clipping with a Region.

An application can also use regions in hit-testing operations, such as checking whether a point or a rectangle intersects a region. For more information on using regions for hit-testing, see How To: Use Hit Testing with a Region.

An application can fill a region by using the Graphics.FillRegion(Brush, Region) method and a System.Drawing.Brush object.


Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,