Redigera

Dela via


CaptureMode Enum

Definition

Specifies the mouse capture policies.

public enum class CaptureMode
public enum CaptureMode
type CaptureMode = 
Public Enum CaptureMode
Inheritance
CaptureMode

Fields

Name Value Description
None 0

No mouse capture. Mouse input goes to the element under the mouse.

Element 1

Mouse capture is applied to a single element. Mouse input goes to the captured element.

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.

Remarks

When CaptureMode is set to Element, mouse capture is applied only to the element that has captured the mouse.

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.

Applies to

See also