Rectangle.Equality(Rectangle, Rectangle) Operator

Definicja

Sprawdza, czy dwie Rectangle struktury mają równą lokalizację i rozmiar.

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

Parametry

left
Rectangle

Struktura Rectangle , która znajduje się po lewej stronie operatora równości.

right
Rectangle

Struktura Rectangle , która jest po prawej stronie operatora równości.

Zwraca

Boolean

Ten operator zwraca wartośćtrue, jeśli obie Rectangle struktury mają równe Xwłaściwości , , YWidthi Height .

Dotyczy