Width: Integer;
The Width property determines the width of the size.
The size is determined with integer values.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Rect: IWxRectangle;
Size: IGxSize;
w: Integer;
Begin
Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;
Size:=Rect.Size.ToSize;
w:=Size.Width;
End Sub Button1OnClick;
After executing the example clicking the button creates a rectangle in the workspace, and the "w" variable contains its width.
See also: