IInputElement.IsMouseDirectlyOver 屬性

定義

取得值,該值表示滑鼠指標在最嚴格的點擊測試意義上,是否在這個項目上方。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.IsMouseDirectlyOver參閱UIElement.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.

適用於

另請參閱