IGxSizeF.Equals

Syntax

Equals(Size: IGxSizeF): Boolean;

Parameters

Size. The size used for comparison.

Description

The Equals method checks if the current real size is equal to the size passed by the input parameter.

Example

Sub UserProc;
Var
    s1, s2: IGxSizeF;
Begin
    s1 := New GxSizeF.Create(Math.RandBetween(02), Math.RandBetween(02));
    s2 := New GxSizeF.Create(Math.RandBetween(02), Math.RandBetween(02));
    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:

IGxSizeF