IWxWorkspace.CreateDoubleBoxArrow

Syntax

CreateDoubleBoxArrow: IWxDoubleBoxArrow;

CreateDoubleBoxArrow(): Prognoz.Platform.Interop.Andy.IWxDoubleBoxArrow;

Description

The CreateDoubleBoxArrow method creates a two-headed arrow callout.

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;
    DBArrow: IWxDoubleBoxArrow;
Begin
    
// Get workspace
    mb := MetabaseClass.Active;
    wsp := mb.ItemById(
"WSP").Edit As IWxWorkspace;
    
// Get shape
    DBArrow := wsp.CreateDoubleBoxArrow;
    DBArrow.ArrowHeightOffset := 
3;
    DBArrow.ArrowWidthOffset := 
25;
    DBArrow.BoxHeightOffset := 
8;
    DBArrow.BoxWidthOffset := 
20;
    DBArrow.PinPosition := 
New GxPointF.Create(1210);
    
//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;
    DBArrow: IWxDoubleBoxArrow;
Begin
    
// Get workspace
    mb := Params.Metabase;
    wsp := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    
// Get shape
    DBArrow := wsp.CreateDoubleBoxArrow();
    DBArrow.ArrowHeightOffset := 
3;
    DBArrow.ArrowWidthOffset := 
25;
    DBArrow.BoxHeightOffset := 
8;
    DBArrow.BoxWidthOffset := 
20;
    DBArrow.PinPosition.Create(
1210);
    
//Save changes
    (Wsp As IMetabaseObject).Save();
End Sub;

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

See also:

IWxWorkspace