## Equals(object) {#equals_1}

Tests to see whether the specified object is a Size with the same dimensions as this Size.

```csharp
public override bool Equals(object obj)
```

| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The Object to test. |

### Return Value

true if *obj* is a Size and has the same width and height as this Size; otherwise, false.

### See Also

* struct [Size](../)
* namespace [System.Drawing](../../size/)
* assembly [Aspose.Drawing](../../../)

---

## Equals(Size) {#equals}

Tests whether other [`Size`](../) structure has the same size of this [`Size`](../) structure.

```csharp
public bool Equals(Size other)
```

| Parameter | Type | Description |
| --- | --- | --- |
| other | Size | Other size to test |

### Return Value

This method returns `true` if other [`Size`](../) structure and its Width and Height properties are equal to the corresponding properties of this [`Size`](../) structure; otherwise, `false`.

### See Also

* struct [Size](../)
* namespace [System.Drawing](../../size/)
* assembly [Aspose.Drawing](../../../)


