Export (0) Print
Expand All

Region Methods

The Region type exposes the following members.

  Name Description
Public method Clone Creates an exact copy of this Region.
Public method Complement(GraphicsPath) Updates this Region to contain the portion of the specified GraphicsPath that does not intersect with this Region.
Public method Complement(Rectangle) Updates this Region to contain the portion of the specified Rectangle structure that does not intersect with this Region.
Public method Complement(RectangleF) Updates this Region to contain the portion of the specified RectangleF structure that does not intersect with this Region.
Public method Complement(Region) Updates this Region to contain the portion of the specified Region that does not intersect with this Region.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Releases all resources used by this Region.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Equals(Region, Graphics) Tests whether the specified Region is identical to this Region on the specified drawing surface.
Public method Exclude(GraphicsPath) Updates this Region to contain only the portion of its interior that does not intersect with the specified GraphicsPath.
Public method Exclude(Rectangle) Updates this Region to contain only the portion of its interior that does not intersect with the specified Rectangle structure.
Public method Exclude(RectangleF) Updates this Region to contain only the portion of its interior that does not intersect with the specified RectangleF structure.
Public method Exclude(Region) Updates this Region to contain only the portion of its interior that does not intersect with the specified Region.
Public method Static member FromHrgn Initializes a new Region from a handle to the specified existing GDI region.
Public method GetBounds Gets a RectangleF structure that represents a rectangle that bounds this Region on the drawing surface of a Graphics object.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetHrgn Returns a Windows handle to this Region in the specified graphics context.
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetRegionData Returns a RegionData that represents the information that describes this Region.
Public method GetRegionScans Returns an array of RectangleF structures that approximate this Region after the specified matrix transformation is applied.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Intersect(GraphicsPath) Updates this Region to the intersection of itself with the specified GraphicsPath.
Public method Intersect(Rectangle) Updates this Region to the intersection of itself with the specified Rectangle structure.
Public method Intersect(RectangleF) Updates this Region to the intersection of itself with the specified RectangleF structure.
Public method Intersect(Region) Updates this Region to the intersection of itself with the specified Region.
Public method IsEmpty Tests whether this Region has an empty interior on the specified drawing surface.
Public method IsInfinite Tests whether this Region has an infinite interior on the specified drawing surface.
Public method IsVisible(Point) Tests whether the specified Point structure is contained within this Region.
Public method IsVisible(PointF) Tests whether the specified PointF structure is contained within this Region.
Public method IsVisible(Rectangle) Tests whether any portion of the specified Rectangle structure is contained within this Region.
Public method IsVisible(RectangleF) Tests whether any portion of the specified RectangleF structure is contained within this Region.
Public method IsVisible(Point, Graphics) Tests whether the specified Point structure is contained within this Region when drawn using the specified Graphics.
Public method IsVisible(PointF, Graphics) Tests whether the specified PointF structure is contained within this Region when drawn using the specified Graphics.
Public method IsVisible(Rectangle, Graphics) Tests whether any portion of the specified Rectangle structure is contained within this Region when drawn using the specified Graphics.
Public method IsVisible(RectangleF, Graphics) Tests whether any portion of the specified RectangleF structure is contained within this Region when drawn using the specified Graphics.
Public method IsVisible(Single, Single) Tests whether the specified point is contained within this Region.
Public method IsVisible(Int32, Int32, Graphics) Tests whether the specified point is contained within this Region object when drawn using the specified Graphics object.
Public method IsVisible(Single, Single, Graphics) Tests whether the specified point is contained within this Region when drawn using the specified Graphics.
Public method IsVisible(Int32, Int32, Int32, Int32) Tests whether any portion of the specified rectangle is contained within this Region.
Public method IsVisible(Single, Single, Single, Single) Tests whether any portion of the specified rectangle is contained within this Region.
Public method IsVisible(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 method IsVisible(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 method MakeEmpty Initializes this Region to an empty interior.
Public method MakeInfinite Initializes this Region object to an infinite interior.
Public method ReleaseHrgn Releases the handle of the Region.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Transform Transforms this Region by the specified Matrix.
Public method Translate(Int32, Int32) Offsets the coordinates of this Region by the specified amount.
Public method Translate(Single, Single) Offsets the coordinates of this Region by the specified amount.
Public method Union(GraphicsPath) Updates this Region to the union of itself and the specified GraphicsPath.
Public method Union(Rectangle) Updates this Region to the union of itself and the specified Rectangle structure.
Public method Union(RectangleF) Updates this Region to the union of itself and the specified RectangleF structure.
Public method Union(Region) Updates this Region to the union of itself and the specified Region.
Public method Xor(GraphicsPath) Updates this Region to the union minus the intersection of itself with the specified GraphicsPath.
Public method Xor(Rectangle) Updates this Region to the union minus the intersection of itself with the specified Rectangle structure.
Public method Xor(RectangleF) Updates this Region to the union minus the intersection of itself with the specified RectangleF structure.
Public method Xor(Region) Updates this Region to the union minus the intersection of itself with the specified Region.
Top
Show:
© 2014 Microsoft