event AddLink (Link as Link)
A new link has been added to the links collection.

TypeDescription
Link as Link A Link object being added to the Links collection.
The AddLink event notifies your application once a new link has been added to the Links collection. The Add method adds a new link to the Links collection. The CreateLink event notifies your application when the user links two elements on the surface. You can use the AddLink event to change properties of the added link to default values or to associate any extra data to the added link. The AllowLink event occurs when user links two elements to specify whether the link is allowed.

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

The AddLink event may be called during the LoadXML method.

Syntax for AddLink event, /NET version, on:

private void AddLink(object sender,exontrol.EXSURFACELib.Link Link)
{
}

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

Syntax for AddLink event, /COM version, on:

private void AddLink(object sender, AxEXSURFACELib._ISurfaceEvents_AddLinkEvent e)
{
}

void OnAddLink(LPDISPATCH Link)
{
}

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

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

procedure AddLink(sender: System.Object; e: AxEXSURFACELib._ISurfaceEvents_AddLinkEvent);
begin
end;

begin event AddLink(oleobject Link)
end event AddLink

Private Sub AddLink(ByVal sender As System.Object, ByVal e As AxEXSURFACELib._ISurfaceEvents_AddLinkEvent) Handles AddLink
End Sub

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

Private Sub AddLink(ByVal Link As Object)
End Sub

LPARAMETERS Link

PROCEDURE OnAddLink(oSurface,Link)
RETURN

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

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

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

Procedure OnComAddLink Variant llLink
	Forward Send OnComAddLink llLink
End_Procedure

METHOD OCX_AddLink(Link) CLASS MainDialog
RETURN NIL

void onEvent_AddLink(COM _Link)
{
}

function AddLink as v (Link as OLE::Exontrol.Surface.1::ILink)
end function

function nativeObject_AddLink(Link)
return