event AddComponent (NewComponent as Component)
Occurs when a new component is added.

TypeDescription
NewComponent as Component A Component object being created and added to the Components collection. 
The AddComponent event notifies your application once a new Component object is added to the Components collection. The AddComponent event is fired only if the control's FireEvents property is True. The body of the iCalendar object consists of a sequence of calendar properties and one or more calendar components. The calendar properties are attributes that apply to the calendar object as a whole. The calendar components are collections of properties that express a particular calendar semantic. For example, the calendar component can specify an event, a to-do, a journal entry, time zone information, free/busy time information, or an alarm. For instance, the  AddComponent event occurs when the LoadFile method encounters a "BEGIN" ":" iana-token sequence. Use the UserData property to associate any extra-data to the component object.

The order of the events for Load, LoadFile methods is:  

The following is a simple example of an iCalendar component:

BEGIN:VEVENT
UID:19970610T172345Z-AF23B2@example.com
DTSTAMP:19970610T172345Z
DTSTART:19970714T170000Z
DTEND:19970715T040000Z
SUMMARY:Bastille Day Party
END:VEVENT

Syntax for AddComponent event, /NET version, on:

private void AddComponent(object sender,exontrol.EXICALENDARLib.Component NewComponent)
{
}

Private Sub AddComponent(ByVal sender As System.Object,ByVal NewComponent As exontrol.EXICALENDARLib.Component) Handles AddComponent
End Sub

Syntax for AddComponent event, /COM version, on:

private void AddComponent(object sender, AxEXICALENDARLib._IICalendarEvents_AddComponentEvent e)
{
}

void OnAddComponent(LPDISPATCH NewComponent)
{
}

void __fastcall AddComponent(TObject *Sender,Exicalendarlib_tlb::IComponent *NewComponent)
{
}

procedure AddComponent(ASender: TObject; NewComponent : IComponent);
begin
end;

procedure AddComponent(sender: System.Object; e: AxEXICALENDARLib._IICalendarEvents_AddComponentEvent);
begin
end;

begin event AddComponent(oleobject NewComponent)
end event AddComponent

Private Sub AddComponent(ByVal sender As System.Object, ByVal e As AxEXICALENDARLib._IICalendarEvents_AddComponentEvent) Handles AddComponent
End Sub

Private Sub AddComponent(ByVal NewComponent As EXICALENDARLibCtl.IComponent)
End Sub

Private Sub AddComponent(ByVal NewComponent As Object)
End Sub

LPARAMETERS NewComponent

PROCEDURE OnAddComponent(oICalendar,NewComponent)
RETURN

Syntax for AddComponent event, /COM version (others), on:

<SCRIPT EVENT="AddComponent(NewComponent)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function AddComponent(NewComponent)
End Function
</SCRIPT>

Procedure OnComAddComponent Variant llNewComponent
	Forward Send OnComAddComponent llNewComponent
End_Procedure

METHOD OCX_AddComponent(NewComponent) CLASS MainDialog
RETURN NIL

void onEvent_AddComponent(COM _NewComponent)
{
}

function AddComponent as v (NewComponent as OLE::Exontrol.ICalendar.1::IComponent)
end function

function nativeObject_AddComponent(NewComponent)
return