ActivityDesigner.HitTest(Point) 方法

定义

获取有关位于屏幕上指定点的 ActivityDesigner 的信息。Gets information about the ActivityDesigner at a specified point on the screen.

public:
 virtual System::Workflow::ComponentModel::Design::HitTestInfo ^ HitTest(System::Drawing::Point point);
public virtual System.Workflow.ComponentModel.Design.HitTestInfo HitTest (System.Drawing.Point point);
abstract member HitTest : System.Drawing.Point -> System.Workflow.ComponentModel.Design.HitTestInfo
override this.HitTest : System.Drawing.Point -> System.Workflow.ComponentModel.Design.HitTestInfo
Public Overridable Function HitTest (point As Point) As HitTestInfo

参数

point
Point

一个表示 x 和 y 坐标的 PointA Point that represents a single x and y coordinate.

返回

HitTestInfo

一个 HitTestInfo,其中包含有关指定点处的 ActivityDesigner 的信息。A HitTestInfo that contains information about the ActivityDesigner at a specified point.

注解

HitTestInfoHitTest 控件的 ActivityDesigner 方法一起使用,用于确定用户单击了 ActivityDesigner 控件的哪一部分。The HitTestInfo, together with the HitTest method of the ActivityDesigner control is used to determine which part of an ActivityDesigner control the user has clicked. HitTestInfo 包含 ActivityDesigner 上单鼠标的点的逻辑坐标。The HitTestInfo contains logical coordinates of the point on the ActivityDesigner where the mouse was clicked.

HitTest 方法接收包含 x 和 y 坐标的 PointThe HitTest method receives a Point that contains an x and y coordinate.

适用于