Item(Index: Integer): IWxShape;
Index. Shape index.
The Item property returns a shape by the defined index.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Shape: IWxShape;
Size: IGxSizeF;
Begin
ws.BeginUpdate;
Shape := ws.Shapes.Item(1);
Shape.Angle := 40;
Size := New GxSizeF.Create(43,78);
Shape.Size := Size;
ws.EndUpdate;
End Sub UserProc;
After executing the example shape size and rotation angle are changed.
See also: