contains method
Contents
[
Hide
]contains
Determines if the specified point is contained within this Rectangle structure.
Returns
This method returns true if the point represented by point is contained within this Rectangle structure; otherwise false.
def contains(self, point):
    ...
| Parameter | Type | Description | 
|---|---|---|
| point | Point | The Pointto test. | 
contains
Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.
Returns
This method returns true if the rectangular region represented by rect is entirely contained within this Rectangle structure; otherwise false.
def contains(self, rect):
    ...
| Parameter | Type | Description | 
|---|---|---|
| rect | Rectangle | The Rectangleto test. | 
contains
Determines if the specified point is contained within this Rectangle structure.
Returns
This method returns true if the point defined by x and y is contained within this Rectangle structure; otherwise false.
def contains(self, x, y):
    ...
| Parameter | Type | Description | 
|---|---|---|
| x | int | The x-coordinate of the point to test. | 
| y | int | The y-coordinate of the point to test. | 
See Also
- module aspose.cad
- class Point
- class Rectangle