private static void SetParagraphInlineCollection(Paragraph p, List<Inline> newValue) { p.Inlines.Clear(); foreach (Inline line in newValue) { p.Inlines.Add(line); } }