Single Line Font Change

This might seem like an odd request but it appears after reading the forum and looking at the examples there is little to no real examples of changing the font on a single line.

For example: Single Line Font Change.”

The above example is a single line where there is bold and following on the same line with regular text.

Hi Raymond,

I’m not exactly sure what you’re asking.
Nevertheless, here is how you can create a paragraph with some text that has different fonts:

Dim document = New DocumentModel()
Dim section = New Section(document)
document.Sections.Add(section)

Dim paragraph = New Paragraph(document)
section.Blocks.Add(paragraph)

Dim run1 = New Run(document, "First text, ")
paragraph.Inlines.Add(run1)
run1.CharacterFormat.FontName = "Arial"
run1.CharacterFormat.Size = 10

Dim run2 = New Run(document, "second text.")
paragraph.Inlines.Add(run2)
run2.CharacterFormat.FontName = "Segoe UI"
run2.CharacterFormat.Size = 18

document.Save("output.docx")

Regards,
Mario

That would work!
Thank you Mario