Width: Double;
The Width property determines the width of the size.
The size is determined with real values.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
SizeF: IGxSizeF;
Rect: IWxRectangle;
Begin
SizeF:=New GxSizeF.Create(10.55,10.66);
Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;
SizeF.Width:=12.4664;
SizeF.Height:=18.659;
Rect.BeginUpdate;
Rect.Size:= New GxSizef.CreateFromSize(SizeF);
Rect.EndUpdate;
End Sub Button1OnClick;
After executing the example clicking the button creates a rectangle with the 12.4664 width and the 18.659 height in the workspace.
See also: