## TextSpan structure

Represents the text span.

```java
public struct TextSpan : IComparable<TextSpan>, IEquatable<TextSpan>
```

## Constructors

| Name | Description |
| --- | --- |
| [TextSpan](textspan/)(int, int) | Create the TextSpan |

## Properties

| Name | Description |
| --- | --- |
| [getEnd](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/end/) Get the End index. |
| [getLength](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/length/) Get the length. |
| [getStart](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/start/) Get the Start index. |

## Methods

| Name | Description |
| --- | --- |
| static [Combine](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/combine/)(TextSpan, TextSpan) | Combines the text spans |
| static [Create](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/create/)(int, int) | Create the TextSpan |
| static [CreateEmpty](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/createempty/#createempty)() | Create the empty text span. |
| static [CreateEmpty](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/createempty/#createempty_1)(int) | Create empty TextSpan from start position. |
| static [CreateFromStartEnd](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/createfromstartend/)(int, int) | Create the TextSpan |
| [compareTo](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/compareto/)(TextSpan) | Compare with other TextSpan |
| [equals](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/equals/#equals_1)(object) | Compare with other object |
| [equals](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/equals/#equals)(TextSpan) | Compare with other TextSpan |
| [getHashCode](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/gethashcode/)() | Get the HashCode |
| [isEmpty](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/isempty/)() | Return true if length ==0. |
| [toString](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/toString/)() | Get ToString() override |
| [operator ==](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/op_equality/) |  |
| [operator !=](../../com.aspose.html.toolkit.markdown.syntax.text/textspan/op_inequality/) |  |

### See Also

* package [com.aspose.html.toolkit.markdown.syntax.text](../../com.aspose.html.toolkit.markdown.syntax.text/)
* package [Aspose.HTML](../../)
