GrapeCity.Win.Calendar 名前空間 > GcCalendar クラス > DayOfWeekFromPoint メソッド : DayOfWeekFromPoint(Int32,Int32) メソッド |
Imports GrapeCity.Win.Calendar Private Sub GcCalendar1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Calendar1.MouseMove ' マウスポインタ位置の日付を取得します。 Dim aDate As DateTimeEx = GcCalendar1.DateFromPoint(e.X, e.Y) if Not(aDate Is Nothing) Then Me.Text = aDate.ToLongDateString() ' 日付の曜日を取得します。 Me.Text = GcCalendar1.DayOfWeekFromPoint(e.X, e.Y).ToString() End If End Sub
using GrapeCity.Win.Calendar; private void gcCalendar1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { // マウスポインタ位置の日付を取得します。 DateTimeEx aDate = gcCalendar1.DateFromPoint(e.X, e.Y); if (aDate != null) { this.Text = aDate.ToLongDateString(); // 日付の曜日を取得します。 this.Text = gcCalendar1.DayOfWeekFromPoint(e.X, e.Y).ToString(); } }
Target Platforms: 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