SystemParameters.IsMousePresent Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a value that indicates whether a mouse is installed.

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

public static bool IsMousePresent {

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