---
title: "TextSpan.Equals"
url: "https://reference.aspose.com/html/net/aspose.html.toolkit.markdown.syntax.text/textspan/equals/"
product: "Aspose.HTML for .NET API Reference"
description: "TextSpan Equals method. Compare with other TextSpan"
---

## Equals(*[TextSpan](../)*) {#equals}

Compare with other TextSpan

```csharp
public bool Equals(TextSpan other)
```

| Parameter | Type | Description |
| --- | --- | --- |
| other | TextSpan | The other TextSpan |

### Return Value

The if both TextSpan are equal.

### See Also

* struct [TextSpan](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../../)

---

## Equals(*object*) {#equals_1}

Compare with other object

```csharp
public override bool Equals(object obj)
```

| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The other object |

### Return Value

The if both TextSpan are equal.

### See Also

* struct [TextSpan](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../../)
