IWxWorkspace.CreateDoubleArrow

Syntax

CreateDoubleArrow: IWxDoubleArrow;

CreateDoubleArrow(): Prognoz.Platform.Interop.Andy.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;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
    First, Last: IGxPointF;
    DArrow: IWxDoubleArrow;
Begin
    
// Get workspace
    mb := Params.Metabase;
    wsp := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    
// Get shape
    DArrow := wsp.CreateDoubleArrow();
    DArrow.FirstPoint.Create(
106);
    DArrow.LastPoint.Create(
320);
    DArrow.HeightOffset := 
5;
    DArrow.WidthOffset := 
12;
    
//Save changes
    (Wsp As IMetabaseObject).Save();
End Sub;

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

See also:

IWxWorkspace