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.EXSURFACELib.Link Link)
{
}

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

Syntax for CreateLink event, /COM version, on:

private void CreateLink(object sender, AxEXSURFACELib._ISurfaceEvents_CreateLinkEvent e)
{
}

void OnCreateLink(LPDISPATCH Link)
{
}

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

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

procedure CreateLink(sender: System.Object; e: AxEXSURFACELib._ISurfaceEvents_CreateLinkEvent);
begin
end;

begin event CreateLink(oleobject Link)
end event CreateLink

Private Sub CreateLink(ByVal sender As System.Object, ByVal e As AxEXSURFACELib._ISurfaceEvents_CreateLinkEvent) Handles CreateLink
End Sub

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

Private Sub CreateLink(ByVal Link As Object)
End Sub

LPARAMETERS Link

PROCEDURE OnCreateLink(oSurface,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.Surface.1::ILink)
end function

function nativeObject_CreateLink(Link)
return