# Rectangle.Inequality(Rectangle, Rectangle)Rectangle.Inequality(Rectangle, Rectangle)Rectangle.Inequality(Rectangle, Rectangle)Rectangle.Inequality(Rectangle, Rectangle) Operator

## Definição

Testa se duas estruturas Rectangle diferem no local ou no tamanho.Tests whether two Rectangle structures differ in location or 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 op_Inequality : System.Drawing.Rectangle * System.Drawing.Rectangle -> bool``
``Public Shared Operator != (left As Rectangle, right As Rectangle) As Boolean``

#### Parâmetros

left
Rectangle Rectangle Rectangle Rectangle

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

right
Rectangle Rectangle Rectangle Rectangle

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

#### Retornos

Esse operador retornará `true` se qualquer uma das propriedades X, Y, Width ou Height das duas estruturas Rectangle forem diferentes; caso contrário `false`.This operator returns `true` if any of the X, Y, Width or Height properties of the two Rectangle structures are unequal; otherwise `false`.