Version

CalendarAlign Property

Determines how the calendar is aligned when the ResizeMode is set to BaseOnControlSize.
Syntax
'Declaration
 
Public Property CalendarAlign As ContentAlignment
public ContentAlignment CalendarAlign {get; set;}
Remarks

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.

Example
This example configures the control to display as many months as possible given the current size of the control, and top-left aligns the visible months.

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;

		}
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