語言

UIElement.ReleasePointerCaptures 方法

定義

釋放此元素所持有的所有指標捕獲。

public:
 virtual void ReleasePointerCaptures() = ReleasePointerCaptures;
void ReleasePointerCaptures();
public void ReleasePointerCaptures();
function releasePointerCaptures()
Public Sub ReleasePointerCaptures ()

備註

由於存在輸入情境,例如操作涉及多個指標點,Windows 執行階段 允許同時捕捉多個指標。 呼叫 ReleasePointerCapture 會從集合中 移除特定指標 (由其 ID 識別),而 ReleasePointerCaptures 則清除整個集合。

使用者若操作使指標擷取失效,例如從指標點釋放,也會改變擷取狀態。 更多資訊請參見 滑鼠互動控制指標輸入

PointerCaptures 屬性揭示了 UIElement 目前捕捉到哪些指標點的視圖。

適用於

另請參閱