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

## TextSpan.CompareTo method

Compare with other TextSpan

```csharp
public int CompareTo(TextSpan other)
```

| Parameter | Type | Description |
| --- | --- | --- |
| other | TextSpan | The other TextSpan. |

### Return Value

The start position of difference.

### See Also

* struct [TextSpan](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../../)
