var par = new Paragraph(new Run(""));
par.BorderBrush = Brushes.Black;
ThicknessConverter converter = new ThicknessConverter();
par.BorderThickness = (Thickness)converter.ConvertFromString("0.02cm");
I'm trying to later change "par" to have different text in it, but I don't know how to do it without resetting the properties:
par = new Paragraph(new Run("new text"));
Is there either a way to combine the lines setting the border brush and thickness with the instantiation of par, or just to change the text in the run?