PeachDrawing.Core

PeachDrawing.Core.Rect

Rect.Equals(object) Method

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

public override bool Equals(object? obj);

Parameters

obj System.Object

The System.Object to test.

Returns

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