Rectangle.Equality(Rectangle, Rectangle) Operador

Definição

Testa se duas estruturas Rectangle têm local e tamanho iguais.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

Parâmetros

left
Rectangle

A estrutura Rectangle que está à esquerda do operador de igualdade.The Rectangle structure that is to the left of the equality operator.

right
Rectangle

A estrutura Rectangle que está à direita do operador de igualdade.The Rectangle structure that is to the right of the equality operator.

Retornos

Esse operador retornará true se as duas estruturas Rectangle tiverem as propriedades X, Y, Width e Height iguais.This operator returns true if the two Rectangle structures have equal X, Y, Width, and Height properties.

Aplica-se a