The version that you requested is unavailable. We've redirected you to the latest version of the help.
Version

AllDayEventAreaPreferredMaxHeight Property

Returns or sets a value which determines the preferred maximum height of the all-day event area.
Syntax
'Declaration
 
Public Property AllDayEventAreaPreferredMaxHeight As Integer
public int AllDayEventAreaPreferredMaxHeight {get; set;}
Remarks

Because the control gives precedence to the time slot area when determining the height of other areas, including the all-day event area, to ensure that all time slots are fully displayed, the actual height of the all-day event area can vary from the value of this property by as much as the height of one time slot.

The all-day event area is not displayed when the AllowAllDayEvents property of the associated UltraCalendarInfo is set to false.

When AllowAllDayEvents is set to true, but a given day contains no all-day events, the all-day event area is displayed at its minimum height, which is approximately the height of one time slot.

The height of the all-day event area is calculated automatically, based on the total number of events to be displayed. If the calculated value exceeds the value of the AllDayEventAreaPreferredMaxHeight property, the height is reduced accordingly. If the calculated value is less than the value of AllDayEventAreaPreferredMaxHeight, the calculated value is used.

When scrolling of the all-day event area is enabled, the height defaults to approximately one-half the height of the control. When scrolling is disabled, the height defaults to a value that is large enough to display up to 16 all-day events, or the height of the control minus day and owner headers, borders, etc.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also