CreateRoundedRectangle: IWxRoundedRectangle;
The CreateRoundedRectangle method creates a rounded rectangle.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Rec : IWxRoundedRectangle;
Begin
Rec := ws.CreateRoundedRectangle;
Rec.Id := "Rectangle1";
Rec.PinPosition := New GxPointF.Create(12.3,-2);
Rec.RoundingOffset := 9;
Rec.Text := "Shape";
End Sub UserProc;
After executing the example a rounded rectangle is created.
See also: