点击或拖拽改变大小

RectContains 方法 (Single, Single)

Contains - Returns true if the Point represented by x,y is within the rectangle inclusive of the edges. Returns false otherwise.

命名空间:  CPF.Drawing
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public bool Contains(
	 in float x,
	 in float y
)

参数

x
类型:SystemSingle
X coordinate of the point which is being tested
y
类型:SystemSingle
Y coordinate of the point which is being tested

返回值

类型:Boolean
Returns true if the Point represented by x,y is within the rectangle. Returns false otherwise.
参见