WeekRule と FirstDayOfWeekResolved に基づいて、その年の最初の週を開始する日の System.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 first As DateTime first = Me.ultraCalendarInfo1.GetFirstWeekOfYearDate(DateTime.Today.Year) MessageBox.Show("The date of the first day of the first week of the current year is " + first.ToLongDateString(), "GetFirstWeekOfYearDate", 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 first; first = this.ultraCalendarInfo1.GetFirstWeekOfYearDate( DateTime.Today.Year ); MessageBox.Show( "The date of the first day of the first week of the current year is " + first.ToLongDateString(), "GetFirstWeekOfYearDate", MessageBoxButtons.OK ); }