IInputElement.IsMouseDirectlyOver IInputElement.IsMouseDirectlyOver IInputElement.IsMouseDirectlyOver IInputElement.IsMouseDirectlyOver Property

定義

取得值,該值表示滑鼠指標在最嚴格的點擊測試意義上,是否在這個項目上方。Gets a value that indicates whether the mouse pointer is over this element in the strictest hit testing sense.

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

屬性值

如果滑鼠指標位於這個項目上方則為 true,否則為 falsetrue if the mouse pointer is over this element; otherwise, false.

備註

此介面不是公用的實作。This interface is not intended for public implementation. 如需詳細資訊,請參閱備註IInputElement介面。For more information, see remarks for the IInputElement interface.

中的現有實作Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF)核心 (請參閱 < ContentElement.IsMouseDirectlyOverUIElement.IsMouseDirectlyOver) 建立此屬性為相依性屬性。Existing implementations in the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) core (see ContentElement.IsMouseDirectlyOver and UIElement.IsMouseDirectlyOver) establish this property as a dependency property.

適用於

另請參閱