property SwimLane.AllowLinkObjects as AllowKeysEnum
Specifies the combination of keys that allows the user to link the objects.

TypeDescription
AllowKeysEnum An AllowKeysEnum expression that specifies the keys combination so the user can link two elements on the surface. 
By default, the AllowLinkObjects property is exLeftClick + exSHIFTKey, which indicates that the user can start linking two elements once he clicks an element while keeping the SHIFT key pressed. The AllowLinkObjects property specifies the combination of keys that allows the user to link the objects. Set the AllowLinkObjects property on exDisallow to prevent adding links between elements at runtime. 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 control fires the LayoutStartChanging(exLinkObjects) / LayoutEndChanging(exLinkObjects) event when the user creates a new link on the surface.

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

The following screen shot shows the link when the user links elements: