Rectangle.Equality(Rectangle, Rectangle) Rectangle.Equality(Rectangle, Rectangle) Rectangle.Equality(Rectangle, Rectangle) Rectangle.Equality(Rectangle, Rectangle) Operator

Definition

Tests whether two Rectangle structures have equal location and size.

public:
 static bool operator ==(System::Drawing::Rectangle left, System::Drawing::Rectangle right);
public static bool operator == (System.Drawing.Rectangle left, System.Drawing.Rectangle right);
static member ( = ) : System.Drawing.Rectangle * System.Drawing.Rectangle -> bool
Public Shared Operator == (left As Rectangle, right As Rectangle) As Boolean

Parameters

left
Rectangle Rectangle Rectangle Rectangle

The Rectangle structure that is to the left of the equality operator.

right
Rectangle Rectangle Rectangle Rectangle

The Rectangle structure that is to the right of the equality operator.

Returns

This operator returns true if the two Rectangle structures have equal X, Y, Width, and Height properties.

Applies to