PeachDrawing.Core
PeachDrawing.Core.Rect
Rect.Contains Method
| Overloads | |
|---|---|
| Contains(double, double) | Determines if the specified point is contained within this Rect structure. |
| Contains(PaintPoint) | Determines if the specified point is contained within this Rect structure. |
| Contains(Rect) | Determines if the rectangular region represented by rect is entirely contained within this Rect structure. |
Rect.Contains(double, double) Method
Determines if the specified point is contained within this Rect structure.
public bool Contains(double x, double y);
Parameters
The x-coordinate of the point to test.
The y-coordinate of the point to test.
Returns
System.Boolean
This method returns true if the point defined by x and y is contained within this
Rect
structure; otherwise false.
Rect.Contains(PaintPoint) Method
Determines if the specified point is contained within this Rect structure.
public bool Contains(PeachDrawing.Core.PaintPoint pt);
Parameters
pt PaintPoint
The PaintPoint to test.
Returns
System.Boolean
This method returns true if the point represented by the pt parameter is contained within this
Rect
structure; otherwise false.
Rect.Contains(Rect) Method
Determines if the rectangular region represented by rect is entirely contained within this Rect structure.
public bool Contains(PeachDrawing.Core.Rect rect);
Parameters
rect Rect
The Rect to test.
Returns
System.Boolean
This method returns true if the rectangular region represented by rect is entirely contained within the rectangular region represented by this
Rect
; otherwise false.