Table of Contents

Method SetLastUsedMouseEventSnapshot

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

e MouseEventArgs

The mouse event arguments containing the details of the current mouse event. Cannot be null.

snapshot MouseEventArgsSnapshot

A reference to the snapshot to update with the latest mouse event information.

Returns

bool

true if the current event is a continuation of a double-click sequence; otherwise, false.

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.