Articles in this section
Category / Section

How to add multiple lines of text to the WinForms SyntaxEditor (EditControl)?

4 mins read

Insert multiple lines

The Lines property in EditControl lets you specify multiple lines of text to the EditControl in the form of a string array. This feature is similar to the one in .NET RichTextBox control.

C#

this.editControl1.Lines = new string[] {"first line", "second line", "third line"};

 

VB

Me.editControl1.Lines = New String() {"first line", "second line", "third line"}

 

Reference link: https://help.syncfusion.com/windowsforms/syntaxeditor/editing#total-number-of-lines

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied