バージョン

WeekNumber プロパティ (WeekOfYear)

このオブジェクトに関連付けられた週番号を返します。
シンタックス
'宣言
 
Public ReadOnly Property WeekNumber As Integer
public int WeekNumber {get;}
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

    Private Sub GetFirstWeekOfYearInfo()

        '	Get the first week of the year from the component's WeeksOfYear collection
        Dim weekOfYear As Infragistics.Win.UltraWinSchedule.WeekOfYear
        weekOfYear = Me.ultraCalendarInfo1.WeeksOfYear(1)

        '	Display the week number
        Dim info As String = String.Empty
        info += "Week number " + weekOfYear.WeekNumber.ToString()

        '	Display the WeekOfYear object's enabled state
        If (weekOfYear.Enabled) Then
            info += " is enabled."
        Else
            info += " is disabled."
        End If

        MessageBox.Show(info, "GetFirstWeekOfYearInfo", MessageBoxButtons.OK)

    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void GetFirstWeekOfYearInfo()
		{
			
			//	Get the first week of the year from the component's WeeksOfYear collection
			Infragistics.Win.UltraWinSchedule.WeekOfYear weekOfYear;
			weekOfYear = this.ultraCalendarInfo1.WeeksOfYear[ 1 ];

			//	Display the week number
			string info = string.Empty;
			info += "Week number " + weekOfYear.WeekNumber.ToString();

			//	Display the WeekOfYear object's enabled state
			if ( weekOfYear.Enabled )
				info += " is enabled.";
			else
				info += " is disabled.";

			MessageBox.Show( info, "GetFirstWeekOfYearInfo", MessageBoxButtons.OK );

		}
参照