DateTimePicker.PreferredHeight Property


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

Gets the preferred height of the DateTimePicker control.

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

public int PreferredHeight { get; }

Property Value

Type: System.Int32

The preferred height, in pixels, of the DateTimePicker control.

The preferred height is the minimum height needed to accommodate the displayed text with the assigned Font applied.

.NET Framework
Available since 1.1
Return to top