SystemParameters.MenuBarHeight 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 the height, in pixels, of a single-line menu bar.

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

Public Shared ReadOnly Property MenuBarHeight As Double

Property Value

Type: System.Double

The height of the menu bar.

Maps to SM_CYMENU. See GetSystemMetrics.

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


to call this method, because it calls an unsafe native method. Associated enumeration:


.NET Framework
Available since 3.0
Return to top