Table of Contents

Method IsWithinDoubleClickSize

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

IsWithinDoubleClickSize(PointD, PointD, AbstractControl)

Determines whether the specified points are within the system-defined double-click area for the given control.

public static bool IsWithinDoubleClickSize(PointD first, PointD second, AbstractControl control)

Parameters

first PointD

The first point to compare, typically representing the location of the initial click.

second PointD

The second point to compare, typically representing the location of a subsequent click.

control AbstractControl

The control for which the double-click area is determined. Used to retrieve the appropriate double-click size.

Returns

bool

true if the second point is within the double-click area centered on the first point for the specified control; otherwise, false.

Remarks

The double-click area is based on the system settings for the specified control, which may vary depending on user configuration or control type.