HitTestInfo 類別

定義

警告

此 API 現已淘汰。

包含指定座標上的部分 ActivityDesigner 的詳細資訊。Contains information about a part of the ActivityDesigner at a specified coordinate.

public ref class HitTestInfo
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class HitTestInfo
type HitTestInfo = class
Public Class HitTestInfo
繼承
HitTestInfo
衍生
屬性

備註

注意

此資料討論已被汰換的類型及命名空間。This material discusses types and namespaces that are obsolete. 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

HitTestInfoHitTest 方法搭配使用的 ActivityDesigner 類別,用來決定使用者按下的是 ActivityDesigner 的哪一部分。The HitTestInfo class, in conjunction with the HitTest method of the ActivityDesigner is used to determine which part of an ActivityDesigner the user has clicked. HitTestInfo 類別包含位置以及按下的關聯設計工具。The HitTestInfo class contains the location and associated designer that was clicked.

建構函式

HitTestInfo(ActivityDesigner, HitTestLocations)

初始化 HitTestInfo 物件的執行個體。Initializes an instance of a HitTestInfo object.

屬性

AssociatedDesigner

取得與 ActivityDesigner 類別關聯的 HitTestInfoGets the ActivityDesigner associated with the HitTestInfo class.

Bounds

傳回點擊區域的邊界。Returns the bounds of the area hit.

HitLocation

包含點擊發生位置的相關資訊。Contains information about where the hit occurred.

Nowhere

取得空的 HitTestInfoGets an empty HitTestInfo.

SelectableObject

取得與點擊區域關聯的可選取物件。Gets a selectable object associated with the hit area.

UserData

取得與 HitTestInfo 關聯的使用者資料。Gets the user data associated with the HitTestInfo.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MapToIndex()

傳回點擊設計工具的索引。Returns the index of the hit designer.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於