CreateDoubleArrow: IWxDoubleArrow;
The CreateDoubleArrow method creates a two-headed 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;
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(10, 6);
DArrow.LastPoint := New GxPointF.Create(3, 20);
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: