語言

HitTestLocations 列舉

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

描述設計工具的區域,其中包含傳遞至 HitTest(Point) 方法的點。

此列舉支援其成員值的位元組合。

public enum class HitTestLocations
[System.Flags]
public enum HitTestLocations
[System.Flags]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public enum HitTestLocations
[<System.Flags>]
type HitTestLocations = 
[<System.Flags>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type HitTestLocations = 
Public Enum HitTestLocations
繼承
HitTestLocations
屬性

欄位

名稱 值 Description
None 0

表示設計師沒有任何部位被擊中。

Designer 1

表示設計師的任何部位都受到擊中。

ActionArea 2

表示展開按鈕所包含的區域已被擊中。

Left 4

表示設計器左側被擊中。

Top 8

表示設計師的頂部被擊中。

Right 16

表示設計師的右側部位被擊中。

Bottom 32

表示設計師的底部被擊中。

Connector 64

表示設計師的接頭被擊中。

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

HitTestLocations 被用於 HitTest 描述滑鼠點擊及拖放操作所觸及設計器所觸及的區域。 利用 來 HitTestLocations 決定在成功擊中測試後該採取什麼樣的行動。

適用於