'宣言 Public Class InitializeYearEventArgs Inherits System.EventArgs
public class InitializeYearEventArgs : System.EventArgs
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports System.Diagnostics Private Sub ultraCalendarInfo1_InitializeYear(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.InitializeYearEventArgs) Handles ultraCalendarInfo1.InitializeYear '---------------------------------------------------------------------------------------------------- ' 説明 ' InitializeYear ' ' ユーザー インターフェイスの操作または GetYear メソッドの呼び出しで、 ' Year オブジェクトが初期化されたときに発生します ' '---------------------------------------------------------------------------------------------------- Debug.WriteLine("================================================================================") Debug.WriteLine("InitializeYear event fired for the year " + e.Year.YearNumber.ToString()) Debug.WriteLine("================================================================================") Debug.WriteLine("") End Sub
using System.Diagnostics; using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void ultraCalendarInfo1_InitializeYear(object sender, Infragistics.Win.UltraWinSchedule.InitializeYearEventArgs e) { //---------------------------------------------------------------------------------------------------- // 説明 // InitializeYear // // ユーザー インターフェイスでの操作または GetYear メソッドの呼び出しにより、 // Year オブジェクトが初期化されたときに発生します // //---------------------------------------------------------------------------------------------------- Debug.WriteLine( "================================================================================" ); Debug.WriteLine( "InitializeYear event fired for the year " + e.Year.YearNumber.ToString() ); Debug.WriteLine( "================================================================================" ); Debug.WriteLine( "" ); }