'Declaration Public Property CalendarAlign As ContentAlignment
public ContentAlignment CalendarAlign {get; set;}
When the ResizeMode property is set to BaseOnControlSize, the CalendarAlign property will be used to determine how to align the months within the visible area of the control.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti Private Sub OptimizeDisplay() ' Set the ResizeMode property to BaseOnControlSize, so the control ' displays as many months as can be fit into the available space. Me.ultraMonthViewMulti1.ResizeMode = ResizeMode.BaseOnControlSize ' Align the calendar(s) with the top-left edge of the control Me.ultraMonthViewMulti1.CalendarAlign = ContentAlignment.TopLeft End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.MonthViewMulti; private void OptimizeDisplay() { // Set the ResizeMode property to BaseOnControlSize, so the control // displays as many months as can be fit into the available space. this.ultraMonthViewMulti1.ResizeMode = ResizeMode.BaseOnControlSize; // Align the calendar(s) with the top-left edge of the control this.ultraMonthViewMulti1.CalendarAlign = ContentAlignment.TopLeft; }
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