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.
System.Object
System.MarshalByRefObject
System.Drawing.Region
[Visual Basic] <ComVisible(False)> NotInheritable Public Class Region Inherits MarshalByRefObject Implements IDisposable [C#] [ComVisible(false)] public sealed class Region : MarshalByRefObject, IDisposable [C++] [ComVisible(false)] public __gc __sealed class Region : public MarshalByRefObject, IDisposable [JScript] public ComVisible(false) class Region extends MarshalByRefObject implements IDisposable
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.
Remarks
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.
Requirements
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)