CompositeActivityDesigner.HitTest(Point) 方法

定義

取得畫面上指定點中 CompositeActivityDesigner 的相關資訊。Gets information about the CompositeActivityDesigner at a specified point on the screen.

public:
 override System::Workflow::ComponentModel::Design::HitTestInfo ^ HitTest(System::Drawing::Point point);
public override System.Workflow.ComponentModel.Design.HitTestInfo HitTest (System.Drawing.Point point);
override this.HitTest : System.Drawing.Point -> System.Workflow.ComponentModel.Design.HitTestInfo

參數

point
Point

Point,表示單一 X 和 Y 座標。A Point that represents a single x and y coordinate.

傳回

HitTestInfo,其中包含指定點上的 CompositeActivityDesigner 相關資訊。A HitTestInfo that contains information about the CompositeActivityDesigner at a specified point.

備註

HitTestInfoHitTestCompositeActivityDesigner 控制項的 CompositeActivityDesigner 方法是用來判斷您點選了 控制項的哪個部分。The HitTestInfo, together with the HitTest method of the CompositeActivityDesigner control is used to determine which part of a CompositeActivityDesigner controls you have clicked. HitTestInfo 包含 CompositeActivityDesigner 上滑鼠點選處的邏輯座標。The HitTestInfo contains logical coordinates of the point on the CompositeActivityDesigner where the mouse was clicked.

HitTest 方法會接收包含 X 和 Y 座標的 PointThe HitTest method receives a Point that contains an x and y coordinate.

適用於