IWxConnector.FirstPointAutoCpSelect

Syntax

FirstPointAutoCpSelect: Boolean;

Description

The FirstPointAutoCpSelect property determines whether automatic point selection is used when connecting the beginning of a connecting object with another shape.

Comments

If this property is set to True, the link is bound to one of the perimeter connection points depending on the object position, in fact, connection is provided through the center connection point.

If the property is set to False, the link is always bound to the same object's connection point regardless of the object position.

The property is set to False by default.

Example

Executing the example requires that repository contains a workspace with the WSP identifier containing two shapes and link between them.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    ws: IWxWorkspace;
    Link: IWxLink;
    Shapes: IWxShapes;
Begin
    // Get workspace for editing
    mb := MetabaseClass.Active;
    ws := mb.ItemById("WSP").Edit As IWxWorkspace;
    Shapes := ws.Shapes;
    Link := ws.Shapes.Item(2As IWxLink;
    Link.FirstPointAutoCpSelect := True;
    Link.LastPointAutoCpSelect := True;
    (ws As IMetabaseObject).Save;
End Sub UserProc;

After executing this example the link is provided using automatic selection of points.

See also:

IWxConnector