IGxSize.Width

Syntax

Width: Integer;

Description

The Width property determines the width of the size.

Comments

The size is determined with integer values.

Example

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:

IGxSize