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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

96407 Sep 10,2010 01:09 PM Sep 14,2010 08:00 AM Windows Forms 1
loading
Tags: EditControl
Administrator [Syncfusion]
Asked On September 10, 2010 01:09 PM

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


Lingaraj S [Syncfusion]
Replied On September 14, 2010 08:00 AM

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.


CONFIRMATION

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.

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.

;