Behavior.OnLoseCapture(Glyph, EventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應