Rectangle.Contains
Contents
[
Hide
]Contains(int, int)
Determines if the specified point is contained within this Rectangle structure.
public bool Contains(int x, int y)
Parameter | Type | Description |
---|---|---|
x | Int32 | The x-coordinate of the point to test. |
y | Int32 | The y-coordinate of the point to test. |
Return Value
This method returns true
if the point defined by x and y is contained within this Rectangle structure; otherwise false
.
See Also
- struct Rectangle
- namespace System.Drawing
- assembly Aspose.Drawing
Contains(Point)
Determines if the specified point is contained within this Rectangle structure.
public bool Contains(Point pt)
Parameter | Type | Description |
---|---|---|
pt | Point | The Point to test. |
Return Value
This method returns true
if the point represented by pt is contained within this Rectangle structure; otherwise false
.
See Also
- struct Point
- struct Rectangle
- namespace System.Drawing
- assembly Aspose.Drawing
Contains(Rectangle)
Determines if the rectangular region represented by rect is entirely contained within the rectangular region represented by this Rectangle
.
public bool Contains(Rectangle rect)
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The Rectangle to test. |
Return Value
This method returns true
if the rectangle represented by rect is entirely contained within the rectangular region represented by this Rectangle
; otherwise false
.
See Also
- struct Rectangle
- namespace System.Drawing
- assembly Aspose.Drawing