{
var element =
new Paragraph(
new Run(
new Text("This is the first line")
){ RsidRunProperties = "00CF4A05" },
new Run(
new Break(),
new Text("This is the second line")
){ RsidRunProperties = "00CF4A05" }
){ RsidParagraphMarkRevision = "00CF4A05", RsidParagraphAddition = "00FD48A2", RsidParagraphProperties = "00CF4A05", RsidRunAdditionDefault = "00A03D24" };
return element;
}
OR split these in two separate paragraphs. Effect is same , but the difference comes when we start applying styles to these.
Like this
public static Paragraph GenerateParagraph()
{
var element =
new Paragraph(
new Run(
new Text("This is the first line")
){ RsidRunProperties = "00CF4A05" }
){ RsidParagraphMarkRevision = "00CF4A05", RsidParagraphAddition = "00A03D24", RsidParagraphProperties = "00CF4A05", RsidRunAdditionDefault = "00A03D24" };
return element;
}
public static Paragraph GenerateParagraph()
{
var element =
new Paragraph(
new Run(
new Text("This is the second line")
){ RsidRunProperties = "00CF4A05" }
){ RsidParagraphMarkRevision = "00CF4A05", RsidParagraphAddition = "00A03D24", RsidParagraphProperties = "00CF4A05", RsidRunAdditionDefault = "00A03D24" };
return element;
}