Returns the height in pixels the control needs for its contents.
| C# | int Height = object.PreferredHeight; |
| VB.NET | Height = object.PreferredHeight As Integer |
| C++ | long Height = object->PreferredHeight; long Height = object->GetPreferredHeight(); |
| C | HRESULT object->get_PreferredHeight(long* Height); |
object
Height
Returns the height in pixels the control needs for its contents.
The PreferredHeight property returns the height in pixels a month calendar control needs to show all months (Calendar.MonthsDown) with the Today and Clear buttons. p The height depends on the font, the culture and the DPI of the monitor (DPI). A calendar that sizes itself (AutoSize, the default) uses it automatically. SingleMonthHeight returns the height of one month.
See Also SftCalendar Object | Object Hierarchy | Calendar Layout