ReduceS(Size: IGxSizeF);
Size. The size used for decreasing.
The ReduceS method decreases the real size by the specified size.
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.ReduceS(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 decreased by the second size. The obtained width and height of the first size are displayed in the development environment console.
See also: