I am running into problems when trying to add new line using RichTextBox but not with Plane text. I have tested it in Rhino 7 (SR37) and Rhino 8 (SR17)
TextEntity text = new TextEntity();
RichTextBox rtb = new RichTextBox();
rtb.AppendText("Word\nWord\nWord\nWord");
text.RichText = rtb.Rtf; // All becomes one line without new line
text.PlainText = "Word\nWord\nWord\nWord"; // Works correctly
I have tried Environment.NewLine and \r\n and \r
5 posts - 2 participants