## Equals(*[Unit](../)*) {#equals}

Determines whether the specified [`Unit`](../), is equal to this instance.

```csharp
public virtual bool Equals(Unit other)
```

| Parameter | Type | Description |
| --- | --- | --- |
| other | Unit | The [`Unit`](../) to compare with this instance. |

### Return Value

`true` if the specified [`Unit`](../) is equal to this instance; otherwise, `false`.

### See Also

* class [Unit](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)

---

## Equals(*object*) {#equals_1}

Determines whether the specified Object, is equal to this instance.

```csharp
public override bool Equals(object obj)
```

| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The Object to compare with this instance. |

### Return Value

`true` if the specified Object is equal to this instance; otherwise, `false`.

### See Also

* class [Unit](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
