For the UltraMonthViewMulti, the MonthDimensions are only used when the ResizeMode property is set to SizeToCalendar. Otherwise, the number of months displayed is based on the size of the control. The MonthDimensionsResolved returns a Size struct set to the number of Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth objects wide and high currently being displayed.
Private Sub GetMonthDimensions(ByVal rows As Integer, ByVal cols As Integer) rows = Me.ultraMonthViewMulti1.MonthDimensionsResolved.Height cols = Me.ultraMonthViewMulti1.MonthDimensionsResolved.Width End Sub
private void GetMonthDimensions( out int rows, out int cols ) { rows = this.ultraMonthViewMulti1.MonthDimensionsResolved.Height; cols = this.ultraMonthViewMulti1.MonthDimensionsResolved.Width; }
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