contains method
Contents
[
Hide
]contains(self, point)
Determines if the specified point is contained within this rectangle.
Returns
True if the point is contained within this rectangle; otherwise, False.
def contains(self, point):
...
| Parameter | Type | Description |
|---|---|---|
| point | Point | The point to test. Any object with x and y attributes is accepted. |
Exceptions
| Exception | Description |
|---|---|
| TypeError | Wrong number of arguments. |
contains(self, rect)
Determines if the rectangular region represented by rect is entirely contained within this rectangle.
Returns
True if the rectangular region represented by rect is entirely contained within this rectangle; otherwise, False.
def contains(self, rect):
...
| Parameter | Type | Description |
|---|---|---|
| rect | Rectangle | The rectangle to test. Any object with x, y, width and height attributes is accepted. |
Exceptions
| Exception | Description |
|---|---|
| TypeError | Wrong number of arguments. |
contains(self, x, y)
Determines if the specified point is contained within this rectangle.
Returns
True if the point defined by x and y is contained within this rectangle; 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. |
Exceptions
| Exception | Description |
|---|---|
| TypeError | Wrong number of arguments. |
See Also
- class
Point - class
Rectangle - module
aspose.slides - library
Aspose.Slides