'Declaration Public Event InitializeYear As InitializeYearEventHandler
public event InitializeYearEventHandler InitializeYear
The event handler receives an argument of type InitializeYearEventArgs containing data related to this event. The following InitializeYearEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Year | The Year object to initialize. This property is read-only. |
When the Year object is first created, the InitializeYear event is invoked. This event provides a centralized location for initializing the properties of a particular Year object.
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 '---------------------------------------------------------------------------------------------------- ' Description ' InitializeYear ' ' Fires when a Year object is initialized, either through actions performed via the user interface, ' or as a result of the GetYear method being called. ' '---------------------------------------------------------------------------------------------------- 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) { //---------------------------------------------------------------------------------------------------- // Description // InitializeYear // // Fires when a Year object is initialized, either through actions performed via the user interface, // or as a result of the GetYear method being called. // //---------------------------------------------------------------------------------------------------- Debug.WriteLine( "================================================================================" ); Debug.WriteLine( "InitializeYear event fired for the year " + e.Year.YearNumber.ToString() ); Debug.WriteLine( "================================================================================" ); Debug.WriteLine( "" ); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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