We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





96407 Sep 10,2010 05:09 PM UTC Sep 14,2010 12:00 PM UTC WinForms 1
Tags: EditControl
Administrator [Syncfusion]
Asked On September 10, 2010 05:09 PM UTC


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?


Lingaraj S [Syncfusion]
Replied On September 14, 2010 12:00 PM UTC


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.

Lingaraj S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon