Region Methods
The methods of the Region class are listed here. For a complete list of Region class members, see the Region Members topic.
Public Methods
Clone Supported by the .NET Compact Framework. | Creates an exact copy if this Region object. |
Complement Supported by the .NET Compact Framework. | Overloaded. Updates this Region object to the portion of the specified RectangleF structure that does not intersect with this Region object. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
Dispose Supported by the .NET Compact Framework. | Releases all resources used by this Region object. |
Equals Supported by the .NET Compact Framework. | Overloaded. |
Exclude Supported by the .NET Compact Framework. | Overloaded. Updates this Region object to the portion of its interior that does not intersect with the specified Rectangle structure. |
![]() FromHrgn | Initializes a new Region object from a handle to the specified existing GDI region. |
GetBounds Supported by the .NET Compact Framework. | Gets a RectangleF structure that represents a rectangle that bounds this Region object on the drawing surface of a Graphics object. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetHrgn | Returns a Windows handle to this Region object in the specified graphics context. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetRegionData | Returns a RegionData object that represents the information that describes this Region object. |
GetRegionScans | Returns an array of RectangleF structures that approximate this Region object. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
Intersect Supported by the .NET Compact Framework. | Overloaded. Updates this Region object to the intersection of itself with the specified Region object. |
IsEmpty Supported by the .NET Compact Framework. | Tests whether this Region object has an empty interior on the specified drawing surface. |
IsInfinite Supported by the .NET Compact Framework. | Tests whether this Region object has an infinite interior on the specified drawing surface. |
IsVisible Supported by the .NET Compact Framework. | Overloaded. Tests whether the specified rectangle is contained within this Region object. |
MakeEmpty Supported by the .NET Compact Framework. | Initializes this Region object to an empty interior. |
MakeInfinite Supported by the .NET Compact Framework. | Initializes this Region object to an infinite interior. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Transform | Transforms this Region object by the specified Matrix object. |
Translate Supported by the .NET Compact Framework. | Overloaded. Offsets the coordinates of this Region object by the specified amount. |
Union Supported by the .NET Compact Framework. | Overloaded. Updates this Region object to the union of itself and the specified GraphicsPath object. |
Xor Supported by the .NET Compact Framework. | Overloaded. Updates this Region object to the union minus the intersection of itself with the specified GraphicsPath object. |
Protected Methods
Finalize Supported by the .NET Compact Framework. | Overridden. See Object.Finalize.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |


