IWxWorkspace.CreateRoundedRectangle

Syntax

CreateRoundedRectangle: IWxRoundedRectangle;

Description

The CreateRoundedRectangle method creates a rounded rectangle.

Example

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:

IWxWorkspace