## TextSpan structure

Represents the text span.

```csharp
public struct TextSpan : IComparable<TextSpan>, IEquatable<TextSpan>
```

## Constructors

| Name | Description |
| --- | --- |
| [TextSpan](textspan/)(*int, int*) | Create the TextSpan |

## Properties

| Name | Description |
| --- | --- |
| [End](../../aspose.html.toolkit.markdown.syntax.text/textspan/end/) { get; } | Get the End index. |
| [Length](../../aspose.html.toolkit.markdown.syntax.text/textspan/length/) { get; } | Get the length. |
| [Start](../../aspose.html.toolkit.markdown.syntax.text/textspan/start/) { get; } | Get the Start index. |

## Methods

| Name | Description |
| --- | --- |
| static [Combine](../../aspose.html.toolkit.markdown.syntax.text/textspan/combine/)(*TextSpan, TextSpan*) | Combines the text spans |
| static [Create](../../aspose.html.toolkit.markdown.syntax.text/textspan/create/)(*int, int*) | Create the TextSpan |
| static [CreateEmpty](../../aspose.html.toolkit.markdown.syntax.text/textspan/createempty/#createempty)() | Create the empty text span. |
| static [CreateEmpty](../../aspose.html.toolkit.markdown.syntax.text/textspan/createempty/#createempty_1)(*int*) | Create empty TextSpan from start position. |
| static [CreateFromStartEnd](../../aspose.html.toolkit.markdown.syntax.text/textspan/createfromstartend/)(*int, int*) | Create the TextSpan |
| [CompareTo](../../aspose.html.toolkit.markdown.syntax.text/textspan/compareto/)(*TextSpan*) | Compare with other TextSpan |
| override [Equals](../../aspose.html.toolkit.markdown.syntax.text/textspan/equals/#equals_1)(*object*) | Compare with other object |
| [Equals](../../aspose.html.toolkit.markdown.syntax.text/textspan/equals/#equals)(*TextSpan*) | Compare with other TextSpan |
| override [GetHashCode](../../aspose.html.toolkit.markdown.syntax.text/textspan/gethashcode/)() | Get the HashCode |
| [IsEmpty](../../aspose.html.toolkit.markdown.syntax.text/textspan/isempty/)() | Return true if length ==0. |
| override [ToString](../../aspose.html.toolkit.markdown.syntax.text/textspan/tostring/)() | Get ToString() override |
| [operator ==](../../aspose.html.toolkit.markdown.syntax.text/textspan/op_equality/) | Override the == operator. |
| [operator !=](../../aspose.html.toolkit.markdown.syntax.text/textspan/op_inequality/) | Overrides the != operator |

### See Also

* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../)
