CreateArrow: IWxArrow;
The CreateArrow method creates a figured arrow.
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;
ws: IWxWorkspace;
Arrow: IWxArrow;
Begin
// Get workspace for editing
mb := MetabaseClass.Active;
ws := mb.ItemById("WSP").Edit As IWxWorkspace;
// Connect the second shape with the first one
Arrow := ws.CreateArrow;
Arrow.FirstPoint := New GxPointF.Create(1, 2);
Arrow.LastPoint := New GxPointF.Create(3, 19);
Arrow.Angle := 10;
Arrow.HeightOffset := 5;
Arrow.WidthOffset := 12;
(ws As IMetabaseObject).Save;
End Sub UserProc;
After executing the example a figured arrow is created.
See also: