Method SetLastUsedMouseEventSnapshot
SetLastUsedMouseEventSnapshot(MouseEventArgs, ref MouseEventArgsSnapshot)
Updates the provided mouse event snapshot to reflect the state of the specified mouse event, including click count tracking for double-click detection.
public static bool SetLastUsedMouseEventSnapshot(MouseEventArgs e, ref MouseEventArgsSnapshot snapshot)
Parameters
eMouseEventArgsThe mouse event arguments containing the details of the current mouse event. Cannot be null.
snapshotMouseEventArgsSnapshotA reference to the snapshot to update with the latest mouse event information.
Returns
Remarks
If the current mouse event is determined to be a continuation of a previous double-click sequence, the click count in the snapshot is incremented. This method is typically used to maintain accurate click count state across mouse events for controls that support double-click or multi-click interactions.