BehaviorService.PushCaptureBehavior Method (Behavior)

 

Pushes a Behavior onto the behavior stack and assigns mouse capture to the behavior.

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

public void PushCaptureBehavior(
	Behavior behavior
)

Parameters

behavior
Type: System.Windows.Forms.Design.Behavior.Behavior

The Behavior to push.

Exception Condition
ArgumentNullException

behavior is null.

Pushing a capture behavior is often done through a hit-tested Glyph. If a behavior calls the PushCaptureBehavior method and mouse capture is lost, the behavior's OnLoseCapture method is called.

.NET Framework
Available since 2.0
Return to top
Show: