Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

TextEntity.RichText do not seem to support new line from RichTextBox

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles