Equals

Equals(Rectangle)

Compares bounds with another rectangle.

public bool Equals(Rectangle other)
Parameter Type Description
other Rectangle The rectangle to compare with.

Return Value

true when position and size match; otherwise false.

See Also


Equals(object)

Compares this rectangle with another object.

public override bool Equals(object obj)
Parameter Type Description
obj Object The object to compare with.

Return Value

true when obj is a matching Rectangle; otherwise false.

See Also