## SourceText class

Base class implements the SourceText.

```csharp
public abstract class SourceText : IDisposable
```

## Properties

| Name | Description |
| --- | --- |
| abstract [Encoding](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/encoding/) { get; } | Get encoding. |
| abstract [Item](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/item/) { get; } | Gets the value at the given index. |
| abstract [Length](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/length/) { get; } | Get the length. |
| [Lines](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/lines/) { get; } | Get the Lines collection. |
| virtual [Span](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/span/) { get; } | Get the span. |

## Methods

| Name | Description |
| --- | --- |
| static [From](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/from/#from)(*SourceText[]*) | Define the interface for get SourceText from array of the source. |
| static [From](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/from/#from_1)(*string*) | Define the interface for get SourceText from string. |
| static [From](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/from/#from_2)(*string, Encoding*) | Define the interface for get SourceText from string and encoding. |
| abstract [CopyTo](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/copyto/)(*int, char[], int, int*) | Define the interface for get SourceText from array of the source. |
| [Dispose](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/dispose/)() | Defines the Dispose interface. |
| [GetText](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/gettext/#gettext)() | Define the interface for get Text. |
| [GetText](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/gettext/#gettext_2)(*int*) | Define the interface for get Text. |
| virtual [GetText](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/gettext/#gettext_1)(*[TextSpan](../textspan/)*) | Define the interface for get Text. |
| override [ToString](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/tostring/#tostring)() | Override the ToString() method. |
| [ToString](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/tostring/#tostring_2)(*int*) | Override the ToString() method. |
| virtual [ToString](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/tostring/#tostring_1)(*[TextSpan](../textspan/)*) | Defines the interface ToString() |
| [ToString](../../aspose.html.toolkit.markdown.syntax.text/sourcetext/tostring/#tostring_3)(*int, int*) | Defines the interface ToString() |

### See Also

* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../)
