バージョン

GetDateForFirstDayOfWeek(Int32,Int32) メソッド

特定の週の最初の日のDatetimeを返します。
シンタックス
'宣言
 
Public Overloads Function GetDateForFirstDayOfWeek( _
   ByVal week As Integer, _
   ByVal year As Integer _
) As Date
public DateTime GetDateForFirstDayOfWeek( 
   int week,
   int year
)

パラメータ

week
週番号
year

戻り値の型

その年の指定した週を開始する日のDateTime。
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.IO
Imports System.Globalization

    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

        Dim firstDateOfFirstWeek As DateTime
        firstDateOfFirstWeek = Me.ultraCalendarInfo1.GetDateForFirstDayOfWeek(1, DateTime.Today.Year)

        MessageBox.Show("The first day of the first week in the current year is " + firstDateOfFirstWeek.ToLongDateString() + "." + vbCrLf, "GetDateForFirstDayOfWeek", MessageBoxButtons.OK)

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

		private void button1_Click(object sender, System.EventArgs e)
		{
			
			DateTime firstDateOfFirstWeek;
			firstDateOfFirstWeek = this.ultraCalendarInfo1.GetDateForFirstDayOfWeek( 1, DateTime.Today.Year );

			MessageBox.Show( "The first day of the first week in the current year is " + firstDateOfFirstWeek.ToLongDateString() + "." + "\n", "GetDateForFirstDayOfWeek", MessageBoxButtons.OK );

		}
参照