Rectangle.Equals Method (Object)

 

Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure.

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

public override bool Equals(
	object obj
)

Parameters

obj
Type: System.Object

The Object to test.

Return Value

Type: System.Boolean

This method returns true if obj is a Rectangle structure and its X, Y, Width, and Height properties are equal to the corresponding properties of this Rectangle structure; otherwise, false.

.NET Framework
Available since 1.1
Return to top
Show: