# How to Make Bold only a Part of the Text in a Paragraph with RadWordsProcessing

## Environment

| Version    | Product            | Author                                                                          |
| ---------- | ------------------ | ------------------------------------------------------------------------------- |
| 2024.1.124 | RadWordsProcessing | [Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova) |

## Description

Learn how to create a bold text part in a paragraph with RadWordsProcessing while keeping the rest of the text regular.

## Solution

To apply bold formatting to a specific part of an inline element, such as a [Run](https://www.telerik.com/document-processing-libraries/documentation/libraries/radwordsprocessing/model/run), use two separate [Run](https://www.telerik.com/document-processing-libraries/documentation/libraries/radwordsprocessing/model/run) objects with different font weights and sizes. The following example shows the approach with [RadWordsProcessing](https://www.telerik.com/document-processing-libraries/documentation/libraries/radwordsprocessing/overview):

```csharp
RadFlowDocument document = new RadFlowDocument();
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
Section section = editor.InsertSection();
Paragraph paragraph = section.Blocks.AddParagraph();

Run articleTitle = new Run(document);
articleTitle.Text = "Bold ";
articleTitle.FontWeight = FontWeights.Bold;
articleTitle.FontSize = 16;
paragraph.Inlines.Add(articleTitle);

Run articleValue = new Run(document);
articleValue.Text = "Regular";
articleValue.FontWeight = FontWeights.Normal;
articleValue.FontSize = 18;
paragraph.Inlines.Add(articleValue);

Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
string outputFilePath = "output.docx";
using (Stream output = File.OpenWrite(outputFilePath))
{ 
    provider.Export(document, output);
}

Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecute = true });
```

> note This code creates a `RadFlowDocument` and inserts a section and a paragraph. Two separate `Run` objects define the bold and regular text. The document is then exported to a DOCX file and opened.

![Create Bold Text](https://www.telerik.com/document-processing-libraries/documentation/assets/2e8b125d6bf214e25a7490efd9011c6a/create-bold-text-run-wordsprocessing.png)

## See Also

* [Run](https://www.telerik.com/document-processing-libraries/documentation/libraries/radwordsprocessing/model/run)
