IGxSizeF.Width

Syntax

Width: Double;

Description

The Width property determines the width of the size.

Comments

The size is determined with real values.

Example

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:

IGxSizeF