Rectangle.Equality Operator (Rectangle, Rectangle)

 

Tests whether two Rectangle structures have equal location and size.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public static bool operator ==(
	Rectangle left,
	Rectangle right
)

Parameters

left
Type: System.Drawing.Rectangle

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

right
Type: System.Drawing.Rectangle

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

Return Value

Type: System.Boolean

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

.NET Framework
Available since 1.1
Return to top
Show: