ExpandS(Size: IGxSizeF);
Size. The size used for expanding.
The ExpandS method increases the current real size by the size passed by the input parameter.
Sub UserProc;
Var
Size1, Size2: IGxSizeF;
Begin
Size1 := New GxSizeF.Create(Math.RandBetween(0, 60), Math.RandBetween(0, 60));
Size2 := New GxSizeF.Create(10.5, 10.5);
Size1.ExpandS(Size2);
Debug.WriteLine("New width: " + Size1.Width.ToString + ". New height: " + Size1.Height.ToString);
End Sub UserProc;
After executing the example two real sizes are created. The first size has random width and height, and the second size had fixed width and height. Then the first size is increased by the second size value. The obtained width and height of the first size are displayed in the development environment console.
See also: