IWxShape.Size

Syntax

Size: IGxSizeF;

Description

The Size property determines shape size.

Comments

To determine rotation angle, use the IWxShape.Angle property.

Example

Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1.

Add links to the Andy, Drawing, Workspace system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Ws: IWxWorkspace;
    Shape: IWxShape;
    Size: IGxSizeF;
    Reg: IWxRegulargon;
Begin
    Ws := WorkspaceBox1.View.Workspace;
    Reg := Ws.CreateRegulargon;
    Reg.Id := 
"Reg1";
    Reg.PinPosition := 
New GxPointF.Create(122);
    Reg.NumberOfSides := 
5;
    Reg.Text := 
"Trapezoid";
    WS.BeginUpdate;
    Shape := WS.Shapes.Item(
0);
    Shape.Angle := 
40;
    Size := 
New GxSizeF.Create(4378);
    Shape.Size := Size;
    WS.EndUpdate;
End Sub Button1OnClick;

After executing the example shape size and rotation angle are changed.

See also:

IWxShape