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