How to have a line break inside a pragraph

Nov 25, 2014 at 11:47 AM
Can anyone help me to have a line break inside a pragraph
Feb 4, 2015 at 6:54 AM
This is easy, see following example:
// Create the document
Document document = new Document(@"C:\Word\Line.docx");

document.Append(
    new Paragraph(
        new Run("There is a break"),
        new Run(enumBreakValues.TextWrapping),
        new Run("in this line")
));      
           

// Save the Document
document.Save();
document.Close();