UIElement.ReleasePointerCaptures 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
釋放此元素所持有的所有指標捕獲。
public:
virtual void ReleasePointerCaptures() = ReleasePointerCaptures;
void ReleasePointerCaptures();
public void ReleasePointerCaptures();
function releasePointerCaptures()
Public Sub ReleasePointerCaptures ()
備註
由於存在輸入情境,例如操作涉及多個指標點,Windows 執行階段 允許同時捕捉多個指標。 呼叫 ReleasePointerCapture 會從集合中 移除特定指標 (由其 ID 識別),而 ReleasePointerCaptures 則清除整個集合。
使用者若操作使指標擷取失效,例如從指標點釋放,也會改變擷取狀態。 更多資訊請參見 滑鼠互動 與 控制指標輸入。
PointerCaptures 屬性揭示了 UIElement 目前捕捉到哪些指標點的視圖。