## Document.CreateTextNode method

Creates a Text node given the specified string.

```csharp
public Text CreateTextNode(string data)
```

| Parameter | Type | Description |
| --- | --- | --- |
| data | String | The text data. |

### Return Value

The [`Text`](../../text/).

### See Also

* class [Text](../../text/)
* class [Document](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
