C1editor .Net 8 How to insert multiple Lines of Text at Selection

Posted by: work on 14 August 2025, 6:38 pm EST

  • Posted 14 August 2025, 6:38 pm EST

    With C1Editor I want to be able to insert multiple lines of text with a carriage return where the cursor is in the document. I cant figure out how to do this.

    If I simply do the following:

    Dim myText As String = “-------------------------------------------------” & vbCrLf & “Line 2” & vbCrLf

    C1Editor1.ReplaceSelectedTextAsync(myText)

    It will only insert into the editor 1 long line that looks like:

    ------------------------------------------------- Line 2

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels