バージョン

InitializeWeekEventHandler デリゲート

Week オブジェクトが作成される時に発生するイベントを処理するためのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub InitializeWeekEventHandler( _
   ByVal sender As Object, _
   ByVal e As InitializeWeekEventArgs _
) 
public delegate void InitializeWeekEventHandler( 
   object sender,
   InitializeWeekEventArgs e
)

パラメータ

sender
e
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.Diagnostics

    Private Sub ultraCalendarInfo1_InitializeWeek(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.InitializeWeekEventArgs) Handles ultraCalendarInfo1.InitializeWeek

        '----------------------------------------------------------------------------------------------------
        '	説明
        '	InitializeWeek
        '
        '	ユーザー インターフェイスの操作または GetWeek メソッドの呼び出しで、
        '	Week オブジェクトが初期化されたときに発生します
        '
        '----------------------------------------------------------------------------------------------------

        Debug.WriteLine("================================================================================")
        Debug.WriteLine("InitializeWeek event fired for the week of " + e.Week.FirstDate.ToLongDateString())
        Debug.WriteLine("================================================================================")
        Debug.WriteLine("")

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

		private void ultraCalendarInfo1_InitializeWeek(object sender, Infragistics.Win.UltraWinSchedule.InitializeWeekEventArgs e)
		{

			//----------------------------------------------------------------------------------------------------
			//	説明
			//	InitializeWeek
			//
			//	ユーザー インターフェイスの操作または GetWeek メソッドの呼び出しで、
			//	Week オブジェクトが初期化されたときに発生します
			//
			//----------------------------------------------------------------------------------------------------
			
			Debug.WriteLine( "================================================================================" );
			Debug.WriteLine( "InitializeWeek event fired for the week of " + e.Week.FirstDate.ToLongDateString() );
			Debug.WriteLine( "================================================================================" );
			Debug.WriteLine( "" );
		
		}
参照