SystemParameters.IsMousePresent Property

 

Gets a value that indicates whether a mouse is installed.

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

Public Shared ReadOnly Property IsMousePresent As Boolean

Property Value

Type: System.Boolean

true if a mouse is installed; otherwise, false.

This value is rarely false, because virtual mice are supported and because some systems detect the presence of the port, instead of a mouse.

Maps to SM_MOUSEPRESENT. See GetSystemMetrics.

<object property="{ SystemParameters.IsMousePresent}"/>

.NET Framework
Available since 3.0
Return to top
Show: