System.Windows.Forms.Design.Behavior.BehaviorService.PushCaptureBehavior Method

Pushes a System.Windows.Forms.Design.Behavior.Behavior onto the behavior stack and assigns mouse capture to the behavior.

Syntax

public void PushCaptureBehavior (Behavior behavior)

Parameters

behavior
The System.Windows.Forms.Design.Behavior.Behavior to push.

Remarks

Pushing a capture behavior is often done through a hit-tested System.Windows.Forms.Design.Behavior.Glyph. If a behavior calls the BehaviorService.PushCaptureBehavior(Behavior) method and mouse capture is lost, the behavior's Behavior.OnLoseCapture(Glyph, EventArgs) method is called.

Requirements

Namespace: System.Windows.Forms.Design.Behavior
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0