# Adding Text

## Content

You can add text to a word document using **C1Word**. You need to write the desired text and use [AddParagraph](/componentone/api/wpf/online-word/dotnet-framework-api/C1.WPF.Word.4.6.2/C1.WPF.Word.C1WordDocument.AddParagraph.html) method to add text. You can also set other properties, such as font style, family, color, and more for the text to be displayed in the word document using [Font](/componentone/api/wpf/online-word/dotnet-framework-api/C1.WPF.Word.4.6.2/C1.WPF.Word.Font.html) class and its properties. The implementation of adding text to a word document is given in the code below:

1. Create an object of [C1WordDocument](/componentone/api/wpf/online-word/dotnet-framework-api/C1.WPF.Word.4.6.2/C1.WPF.Word.C1WordDocument.html) class with the following code:

    ```vbnet
    Dim word = New C1WordDocument()
    ```

    ```csharp
    var word = new C1WordDocument();
    ```
2. Write the following code to add text to the document:

    ```vbnet
    Dim text = "Hello!! This is a sample text."
    Dim font = New Font("Segoe UI Light", 20, RtfFontStyle.Italic)
    word.AddParagraph(text, font, Colors.BlueViolet, RtfHorizontalAlignment.Justify)
    ```

    ```csharp
    var text = "Hello!! This is a sample text.";
    var font = new Font("Segoe UI Light", 20, RtfFontStyle.Italic);
    word.AddParagraph(text, font, Colors.BlueViolet, RtfHorizontalAlignment.Justify);
    ```

The document will look similar to the image below:
![](https://cdn.mescius.io/document-site-files/images/1937f3e0-5163-42e7-88e0-d8b9f901c551/images/simple-text.png)