CreateRegulargon: IWxRegulargon;
The CreateRegulargon method creates a polygon.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Reg : IWxRegulargon;
Begin
Reg := ws.CreateRegulargon;
Reg.Id := "Reg1";
Reg.PinPosition := New GxPointF.Create(12,2);
Reg.NumberOfSides := 5;
Reg.Text := "Trapezium";
End Sub UserProc;
Executing this example will create a trapezium in a workspace.
See also: