バージョン

MonthDimensions プロパティ

月を表示する行数と列数を設定します。
シンタックス
'宣言
 
Public Property MonthDimensions As Size
public Size MonthDimensions {get; set;}
解説

MonthDimensions は、表示する Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth オブジェクトの行と列の数を決定します。

UltraMonthViewMulti の場合、ResizeMode が SizeToCalendar に設定されるとき、このプロパティはコントロールのみに影響を及ぼすことに注意してください。

使用例
Private Sub SetupMonthDimensions()

    '	First, determine how many months, including the current month,
    '	remain in the current year
    Dim monthsToDisplay As Integer = Me.ultraMonthViewMulti1.CalendarInfo.MonthsOfYear.Count - DateTime.Today.Month + 1

    Dim dimensions As Size
    If (monthsToDisplay <= 4) Then
        '	If there are 4 or less months remaining, make it 1 row
        dimensions = New Size(monthsToDisplay, 1)
    Else
        If (monthsToDisplay <= 8) Then
            '	If there is between 5 and 8 months remaining, make it 2 rows
            dimensions = New Size(4, 2)
        Else
            '	If there is more than 8 months remaining, make it 3 rows
            dimensions = New Size(4, 3)
        End If

        '	Set the MonthDimensions property to the new dimensions
        Me.ultraMonthViewMulti1.MonthDimensions = dimensions
    End If

End Sub
private void SetupMonthDimensions()
{

	//	First, determine how many months, including the current month,
	//	remain in the current year
	int monthsToDisplay = (this.ultraMonthViewMulti1.CalendarInfo.MonthsOfYear.Count - DateTime.Today.Month) + 1;

	Size dimensions;
	if ( monthsToDisplay <= 4 )
	{
		//	If there are 4 or less months remaining, make it 1 row
		dimensions = new Size( monthsToDisplay, 1 );
	}
	else
	if ( monthsToDisplay <= 8 )
	{
		//	If there is between 5 and 8 months remaining, make it 2 rows
		dimensions = new Size( 4, 2 );
	}
	else
	{
		//	If there is more than 8 months remaining, make it 3 rows
		dimensions = new Size( 4, 3 );
	}

	//	Set the MonthDimensions property to the new dimensions
	this.ultraMonthViewMulti1.MonthDimensions = dimensions;

}
参照