IGxSize.Equals

Syntax

Equals(Size: IGxSize): Boolean;

Parameters

Size. The size used for comparison.

Description

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

Example

Sub UserProc;
Var
    s1, s2: IGxSize;
Begin
    s1 := New GxSize.Create(Math.RandBetweenI(02), Math.RandBetweenI(02));
    s2 := New GxSize.Create(Math.RandBetweenI(02), Math.RandBetweenI(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 sizes are created. Width, height, and comparison result of the sizes are displayed in the development environment console.

See also:

IGxSize