
## TextSpan class

Represents the text span.



The TextSpan type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/__init__/#int-int) | Create the TextSpan |
| [__init__](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/__init__/#) | Constructs a new instance of TextSpan |


### Properties
| Property | Description |
| :- | :- |
| [start](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/start) | Get the Start index. |
| [end](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/end) | Get the End index. |
| [length](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/length) | Get the length. |


### Methods
| Method | Description |
| :- | :- |
| [create_empty](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/create_empty/#) | Create the empty text span. |
| [create_empty](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/create_empty/#int) | Create empty TextSpan from start position. |
| [is_empty](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/is_empty/#) | Return true if length ==0. |
| [combine](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/combine/#aspose.html.toolkit.markdown.syntax.text.TextSpan-aspose.html.toolkit.markdown.syntax.text.TextSpan) | Combines the text spans |
| [create](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/create/#int-int) | Create the TextSpan |
| [create_from_start_end](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/create_from_start_end/#int-int) | Create the TextSpan |
| [compare_to](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/compare_to/#aspose.html.toolkit.markdown.syntax.text.TextSpan) | Compare with other TextSpan |
| [equals](/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/equals/#aspose.html.toolkit.markdown.syntax.text.TextSpan) | Compare with other TextSpan |



### See Also
* module [`aspose.html.toolkit.markdown.syntax.text`](..)
