IWxView.GlueConnector

Syntax

GlueConnector: Boolean;

GlueConnector: boolean;

Description

The GlueConnector property determines whether a link in a free space can be created.

Comments

If the property is set to True, a link can be created only between objects, if it is set to False, a link can be created both between objects and as a separate object, not connecting the shapes.

The default property value is False.

Example

Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1.

Add links to the Andy, Workspace system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ws: IWxWorkspace;
    view: IWxView;
Begin
    // Get workspace for editing
    ws := UiWorkspace1.WxWorkspace;
    view := ws.CreateView;
    view := ws.Views.Item(0);
    view.GlueConnector := True;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Workspace;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    ws: IWxWorkspace;
    view: IWxView;
Begin
    
// Get workspace for editing
    ws := uiWorkspaceNet1.WxWorkspace;
    view := ws.CreateView();
    view := ws.Views.Item[
0];
 
   view.GlueConnector := True;  
End Sub;

After executing the example a link can be created only between objects.

See also:

IWxView