Rectangle.op_Inequality

Rectangle Inequality operator

Compares two Rectangle objects. The result specifies whether the values of the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height properties of the two Rectangle objects are not equal.

public static bool operator !=(Rectangle left, Rectangle right)
Parameter Type Description
left Rectangle A Rectangle to compare.
right Rectangle A Rectangle to compare.

Return Value

true if the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height values of left and right are not equal; otherwise, false.

See Also