IWxRegulargon.NumberOfSides

Syntax

NumberOfSides: Integer;

Description

The NumberOfSides property determines the number of polygon sides.

Example

Executing the example requires that repository contains a workspace with the WSP identifier containing a polygone.

Add links to the Andy and Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
    Reg: IWxRegulargon;
    Shape: IWxShape;
Begin
    // Get repository
    mb := MetabaseClass.Active;
    wsp := mb.ItemById("WSP").Edit As IWxWorkspace;
    Reg := wsp.Shapes.Item(0As IWxRegulargon;
    Reg.NumberOfSides := 5;
    (wsp As IMetabaseObject).Save;
End Sub UserProc;

After executing the example a polygon is converted into a pentagon.

See also:

IWxRegulargon