---
title: "SourceText.GetText"
url: "https://reference.aspose.com/html/net/aspose.html.toolkit.markdown.syntax.text/sourcetext/gettext/"
product: "Aspose.HTML for .NET API Reference"
description: "SourceText GetText method. Define the interface for get Text"
---

## GetText() {#gettext}

Define the interface for get Text.

```csharp
public SourceText GetText()
```

### Return Value

The SourceText.

### See Also

* class [SourceText](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../../)

---

## GetText(*[TextSpan](../../textspan/)*) {#gettext_1}

Define the interface for get Text.

```csharp
public virtual SourceText GetText(TextSpan span)
```

| Parameter | Type | Description |
| --- | --- | --- |
| span | TextSpan | The TextSpan. |

### Return Value

The SourceText.

### See Also

* struct [TextSpan](../../textspan/)
* class [SourceText](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../../)

---

## GetText(*int*) {#gettext_2}

Define the interface for get Text.

```csharp
public SourceText GetText(int start)
```

| Parameter | Type | Description |
| --- | --- | --- |
| start | Int32 | The int start. |

### Return Value

The SourceText.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentOutOfRangeException | The index is negative -or- larger than the length. |

### See Also

* class [SourceText](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax.Text](../../../aspose.html.toolkit.markdown.syntax.text/)
* assembly [Aspose.HTML](../../../)
