Equals(Size: IGxSizeF): Boolean;
Size. The size used for comparison.
The Equals method checks if the current real size is equal to the size passed by the input parameter.
Sub UserProc;
Var
s1, s2: IGxSizeF;
Begin
s1 := New GxSizeF.Create(Math.RandBetween(0, 2), Math.RandBetween(0, 2));
s2 := New GxSizeF.Create(Math.RandBetween(0, 2), Math.RandBetween(0, 2));
Debug.WriteLine("Width 1: " + s1.Width.ToString + ". Height 1: " + s1.Height.ToString);
Debug.WriteLine("Width 2: " + s2.Width.ToString + ". Height 2: " + s2.Height.ToString);
Debug.WriteLine(s1.Equals(s2));
End Sub UserProc;
After executing the example two real sizes are created. Width, height, and comparison result of the sizes are displayed in the development environment console.
See also: