System.Windows.Forms.Design.Behavior.Behavior.OnLoseCapture Method

Called by the adorner window when it loses mouse capture.

Syntax

public virtual void OnLoseCapture (Glyph g, EventArgs e)

Parameters

g
A System.Windows.Forms.Design.Behavior.Glyph on which to invoke drag-and-drop behavior.
e
An EventArgs that contains the event data.

Remarks

A behavior can request mouse capture through the behavior service by pushing itself onto the behavior stack with the BehaviorService.PushCaptureBehavior(Behavior) method. If it does so, it will be notified through the Behavior.OnLoseCapture(Glyph, EventArgs) method when capture is lost. Generally the behavior removes itself from the stack at this time. Capture is lost when one of the following actions occurs:

  • Someone else requests capture.

  • Another behavior is pushed.

  • This behavior is removed.

In each of these cases, Behavior.OnLoseCapture(Glyph, EventArgs) will be called on the behavior.

Requirements

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