Method IsWithinDoubleClickSize
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
firstPointDThe first point to compare, typically representing the location of the initial click.
secondPointDThe second point to compare, typically representing the location of a subsequent click.
controlAbstractControlThe 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.