This documentation is archived and is not being maintained.

Rect.Equals Method

Determines whether the specified rectangles are equal.

Name Description
Rect.Equals (Object) Compares the specified rectangle to this rectangle.
Rect.Equals (Rect) Determines whether the specified rectangle is equal to this rectangle.
Rect.Equals (Object, Object) Determines whether the specified Object instances are considered equal.
Rect.Equals (Rect, Rect) Determines whether the specified rectangles are equal.

This operation tests for object equality.

In this comparison, NaN is considered equal to itself.

NoteNote:

A rectangle's position and dimensions are described by Double values. Because Double values can lose precision when operated upon, a comparison between two values that are logically equal might fail.

Show: