CaptureMode 列舉

定義

指定滑鼠捕捉 (Mouse Capture) 原則。Specifies the mouse capture policies.

public enum class CaptureMode
public enum CaptureMode
type CaptureMode = 
Public Enum CaptureMode
繼承
CaptureMode

欄位

Element 1

滑鼠捕捉會套用至單一項目。Mouse capture is applied to a single element. 滑鼠輸入會移至捕捉的項目。Mouse input goes to the captured element.

None 0

無滑鼠捕捉。No mouse capture. 滑鼠輸入會移至滑鼠下的項目。Mouse input goes to the element under the mouse.

SubTree 2

滑鼠捕捉會套用至項目的樹狀子目錄。Mouse capture is applied to a subtree of elements. 如果滑鼠在具有捕捉之項目的子系上方,滑鼠輸入會移至子項目。If the mouse is over a child of the element with capture, mouse input is sent to the child element. 否則,滑鼠輸入會移至具有滑鼠捕捉的項目。Otherwise, mouse input is sent to the element with mouse capture.

備註

CaptureMode設定為Element時, 滑鼠捕捉只會套用至已捕捉滑鼠的專案。When CaptureMode is set to Element, mouse capture is applied only to the element that has captured the mouse.

CaptureMode設定為SubTree時, 滑鼠捕捉會套用至具有滑鼠捕捉的專案, 或如果滑鼠位於子專案上方, 則會套用至其子專案的其中一個元素。When CaptureMode is set to SubTree, mouse capture is applied to the element that has mouse capture or one of its child elements if the mouse is over the child element.

適用於

另請參閱