event CreateLink (Link as Link)
The user creates at runtime a new link.

TypeDescription
Link as Link A Link object being created.
The CreateLink event occurs when the user links two elements on the surface. The AllowLinkObjects property specifies the keys combination to let the user links two elements on the surface, the ElementFrom property specifies the element where the link starts, where the ElementTo property specifies ending element of the link. Prior to CreateLink event the control fires the AddLink event that indicates that the link has been added to the Links collection. You can use the Remove method to remove the link. The AllowLink event occurs when user links two elements to specify whether the link is allowed. The Background( exLinkObjectsInvalidColor) property specifies the color to show the invalid link. The Background(exLinkObjectsValidColor) property specifies the color to show the valid link.

The order of the events when the user links two elements at runtime is:

The CreateLink event is not called during the LoadXML method.

Syntax for CreateLink event, /NET version, on:

private void CreateLink(object sender,exontrol.EXSWIMLANELib.Link Link)
{
}

Private Sub CreateLink(ByVal sender As System.Object,ByVal Link As exontrol.EXSWIMLANELib.Link) Handles CreateLink
End Sub

Syntax for CreateLink event, /COM version, on:

private void CreateLink(object sender, AxEXSWIMLANELib._ISwimLaneEvents_CreateLinkEvent e)
{
}

void OnCreateLink(LPDISPATCH Link)
{
}

void __fastcall CreateLink(TObject *Sender,Exswimlanelib_tlb::ILink *Link)
{
}

procedure CreateLink(ASender: TObject; Link : ILink);
begin
end;

procedure CreateLink(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_CreateLinkEvent);
begin
end;

begin event CreateLink(oleobject Link)
end event CreateLink

Private Sub CreateLink(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_CreateLinkEvent) Handles CreateLink
End Sub

Private Sub CreateLink(ByVal Link As EXSWIMLANELibCtl.ILink)
End Sub

Private Sub CreateLink(ByVal Link As Object)
End Sub

LPARAMETERS Link

PROCEDURE OnCreateLink(oSwimLane,Link)
RETURN

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

<SCRIPT EVENT="CreateLink(Link)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function CreateLink(Link)
End Function
</SCRIPT>

Procedure OnComCreateLink Variant llLink
	Forward Send OnComCreateLink llLink
End_Procedure

METHOD OCX_CreateLink(Link) CLASS MainDialog
RETURN NIL

void onEvent_CreateLink(COM _Link)
{
}

function CreateLink as v (Link as OLE::Exontrol.SwimLane.1::ILink)
end function

function nativeObject_CreateLink(Link)
return