Rediger

Del via


Behavior.OnLoseCapture(Glyph, EventArgs) Method

Definition

Called by the adorner window when it loses mouse capture.

public:
 virtual void OnLoseCapture(System::Windows::Forms::Design::Behavior::Glyph ^ g, EventArgs ^ e);
public virtual void OnLoseCapture (System.Windows.Forms.Design.Behavior.Glyph g, EventArgs e);
public virtual void OnLoseCapture (System.Windows.Forms.Design.Behavior.Glyph? g, EventArgs e);
abstract member OnLoseCapture : System.Windows.Forms.Design.Behavior.Glyph * EventArgs -> unit
override this.OnLoseCapture : System.Windows.Forms.Design.Behavior.Glyph * EventArgs -> unit
Public Overridable Sub OnLoseCapture (g As Glyph, e As EventArgs)

Parameters

g
Glyph

A Glyph on which to invoke drag-and-drop behavior.

e
EventArgs

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 PushCaptureBehavior method. If it does so, it will be notified through the OnLoseCapture 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, OnLoseCapture will be called on the behavior.

Applies to

See also