Id: String;
The Id property determines object identifier.
By default, objects will be assigned with Shape N identifiers, where N is an object number.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Rec : IWxRectangle;
Begin
Rec := ws.CreateRectangle;
Rec.Id := "Rectangle1";
Rec.PinPosition := New GxPointF.Create(12.3,-2);
Rec.Text := "Rectangle";
End Sub UserProc;
After executing the example a rectangle is created.
See also: