IInputElement.IsMouseDirectlyOver 屬性

定義

取得值,該值表示滑鼠指標在最嚴格的點擊測試意義上,是否在這個項目上方。

public:
 property bool IsMouseDirectlyOver { bool get(); };
public bool IsMouseDirectlyOver { get; }
member this.IsMouseDirectlyOver : bool
Public ReadOnly Property IsMouseDirectlyOver As Boolean

屬性值

Boolean

如果滑鼠指標位於此項目上方,則為 true;否則為 false

備註

此介面不適用於公用實作。 如需詳細資訊,請參閱 介面的 IInputElement 備註。

Windows Presentation Foundation (WPF) 核心中的現有實作 (請參閱 ContentElement.IsMouseDirectlyOverUIElement.IsMouseDirectlyOver) 建立此屬性作為相依性屬性。

適用於

另請參閱