RectangleContains Method (Int32, Int32)

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

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public bool Contains(
	int x,
	int y
)

Parameters

x
Type: SystemInt32
The x-coordinate of the point to test.
y
Type: SystemInt32
The y-coordinate of the point to test.

Return Value

Type: Boolean
This method returns true if the point defined by x and y is contained within this Rectangle structure; otherwise false.
See Also