HeaderPane
Main
Hide
Share Link
Print

PreferredHeight Property, SftCalendar Object

Returns the height in pixels the control needs for its contents.

Syntax

C#int Height = object.PreferredHeight;
VB.NETHeight = object.PreferredHeight As Integer
C++long Height = object->PreferredHeight;
long Height = object->GetPreferredHeight();
CHRESULT object->get_PreferredHeight(long* Height);

object

A SftCalendar object.

Height

Returns the height in pixels the control needs for its contents.

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.