IInputElement.IsMouseCaptured IInputElement.IsMouseCaptured IInputElement.IsMouseCaptured IInputElement.IsMouseCaptured Property

定義

取得值,指出是否將滑鼠擷取至這個項目。Gets a value that indicates whether the mouse is captured to this element.

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

屬性值

如果項目具有滑鼠擷取,則為 true;否則為 falsetrue if the element has mouse capture; 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.IsMouseCaptured參閱UIElement.IsMouseCaptured和) 會將此屬性建立為相依性屬性。Existing implementations in the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) core (see ContentElement.IsMouseCaptured and UIElement.IsMouseCaptured) establish this property as a dependency property.

適用於

另請參閱