This documentation is archived and is not being maintained.

Region Class

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

For a list of all members of this type, see Region Members.


[Visual Basic]
NotInheritable Public Class Region
   Inherits MarshalByRefObject
   Implements IDisposable
public sealed class Region : MarshalByRefObject, IDisposable
public __gc __sealed class Region : public MarshalByRefObject,
class Region extends MarshalByRefObject implements

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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 clamp the output of drawing operations. The window manager uses regions to define the drawing area of windows. These regions are called clipping regions. An application can also use regions in hit-testing operations, such as checking whether a point or a rectangle intersects a region. An application can fill a region by using a Brush object.


Namespace: System.Drawing

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Drawing (in System.Drawing.dll)

See Also

Region Members | System.Drawing Namespace