contains method

contains

Determines if the specified point is contained within this RectangleF structure.

Returns

This method returns true if the point represented by the point parameter is contained within this RectangleF structure; otherwise false.

def contains(self, point):
    ...
ParameterTypeDescription
pointPointFThe PointF to test.

contains

Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure.

Returns

This method returns true if the rectangular region represented by rect is entirely contained within the rectangular region represented by this RectangleF; otherwise false.

def contains(self, rect):
    ...
ParameterTypeDescription
rectRectangleFThe RectangleF to test.

contains

Determines if the specified point is contained within this RectangleF structure.

Returns

This method returns true if the point defined by x and y is contained within this RectangleF structure; otherwise false.

def contains(self, x, y):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the point to test.
yfloatThe y-coordinate of the point to test.

See Also