Text property return only "\n" as new line symbol

Hello,

The problem is the following: when I assign some text to the Edit Control, I'm adding new lines as "\r\n". But when I retrieving the same text from control, I have only "\n".
DefaultNewLineStyle changing to Windows does not help.

is it possible to have the text with \r\n, as it was assigned?

Regads


1 Reply

LS Lingaraj S Syncfusion Team September 14, 2010 12:00 PM UTC

Hi,

Thank you for your interest in Syncfusion products,

Please try using GetTextWithNewLineStyle method in EditControl to achieve your requirements as shown below.

string text = this.editControl1.GetTextWithNewLineStyle(Syncfusion.IO.NewLineStyle.Windows);


Please let me know if you have any queries.

Regards,
Lingaraj S.


Loader.
Up arrow icon