IInputElement.CaptureMouse IInputElement.CaptureMouse IInputElement.CaptureMouse IInputElement.CaptureMouse Method

定義

嘗試強制將滑鼠的捕捉給這個項目。Attempts to force capture of the mouse to this element.

public:
 bool CaptureMouse();
public bool CaptureMouse ();
abstract member CaptureMouse : unit -> bool
Public Function CaptureMouse () As Boolean

傳回

如果成功捕捉到滑鼠則為 true,否則為 falsetrue if the mouse is successfully captured; otherwise, false.

備註

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

適用於

另請參閱