ExpandS(Size: IGxSizeF);
Size. The size used for expanding.
The ExpandS method expands the current size to the size sent as the Size parameter.
The size is determined with real values.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
SizeF, SizeF1: IGxSizeF;
Rect: IWxRectangle;
Begin
SizeF:=New GxSizeF.Create(10.65,10);
SizeF1:=New GxSizeF.Create(35.3,27.27);
Rect:=UiWorkspace1.WxWorkspace.CreateRectangle;
SizeF.ExpandS(SizeF1);
Rect.BeginUpdate;
Rect.Size:=New GxSizeF.CreateFromSize(SizeF);
Rect.EndUpdate;
End Sub Button1OnClick;
After executing the example clicking the button creates a rectangle in the workspace, and its sizes are expanded on the Size1 value.
See also: