共用方式為


MouseButtonEventArgs.ClickCount Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the number of times the button was clicked.

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public ReadOnly Property ClickCount As Integer
public int ClickCount { get; }

Property Value

Type: System.Int32
The number of times the mouse button was clicked.

Remarks

One use of ClickCount is to determine whether a double mouse click has occurred. The determation for the count is potentially based on time thresholds for reporting double-clicks that are user-adjustable as operating system settings.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.