IWxWorkspace.CreateRegulargon

Syntax

CreateRegulargon: IWxRegulargon;

Description

The CreateRegulargon method creates a polygon.

Example

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:

IWxWorkspace