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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

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 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.


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.

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

;