Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

RectContains 方法

重载列表

Contains(Point) Determines if the rectangle contains a point 确定矩形是否包含点
Contains(Rect) Determines if the rectangle fully contains another rectangle 确定矩形是否完全包含另一个矩形
Contains(Int32, Int32) Determines if the rectangle contains a point with specified coordinates 确定矩形是否包含具有指定坐标的点

参见