Rectangle.ContainsPoint

Rectangle.ContainsPoint method

Determines whether the given point is contained within the rectangle.

public bool ContainsPoint(double x, double y)
ParameterTypeDescription
xDoubleX-coordinate of the point.
yDoubleY-coordinate of the point.

Return Value

true if the point is contained within the rectangle; otherwise, false.

See Also