Version

AppointmentDataInitialized Event

Fired after appointment data is initialized or reinitialized.
Syntax
'Declaration
 
Public Event AppointmentDataInitialized As AppointmentDataInitializedEventHandler
public event AppointmentDataInitializedEventHandler AppointmentDataInitialized
Event Data

The event handler receives an argument of type AppointmentDataInitializedEventArgs containing data related to this event. The following AppointmentDataInitializedEventArgs properties provide information specific to this event.

PropertyDescription
Appointment Appointment being initialized or reinitialized.
Example
The following code initializes appointments by setting their BarColor to Yellow. Doing this will set the BarColor of every appointment that comes from the data source and override any setting in the underlying data.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

'Set the BarColor of the appointment to Yellow. 
e.Appointment.BarColor = Color.Yellow
//Set the BarColor of the appointment to Yellow.
e.Appointment.BarColor = Color.Yellow;
Requirements

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

See Also