IWxWorkspace.CreateDoubleArrow

Syntax

CreateDoubleArrow: IWxDoubleArrow;

Description

The CreateDoubleArrow method creates a two-headed arrow.

Example

Executing the example requires that repository contains a workspace with the WSP identifier.

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

Sub Userproc;
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
    First, Last: IGxPointF;
    DArrow: IWxDoubleArrow;
Begin
    // Get workspace
    mb := MetabaseClass.Active;
    wsp := mb.ItemById("WSP").Edit As IWxWorkspace;
    // Get shape
    DArrow := wsp.CreateDoubleArrow;
    DArrow.FirstPoint := New GxPointF.Create(106);
    DArrow.LastPoint := New GxPointF.Create(320);
    DArrow.HeightOffset := 5;
    DArrow.WidthOffset := 12;
    //Save changes
    (Wsp As IMetabaseObject).Save;
End Sub Userproc;

After executing the example a two-headed arrow is created.

See also:

IWxWorkspace