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. Image for the cookie policy date
close icon

Carriage Return NewLine

Hi, Does the EditControl has a property to use CRNL characters for representing a newline instead of only NL. The reason for this question is: In our software we recently replaced a basic winforms TextBox by an EditControl and now some features of our software are not longer working, because of the fact that newlines are only represented with the NL character in the EditControl Regards, Arjan Griffioen (To-Increase)

4 Replies

AD Administrator Syncfusion Team November 28, 2005 08:09 PM UTC

Hi Arjan, Thanks for your feedback in this regard. We have considered adding a NewLineStyle property to the EditControl and have logged a feature request# 581 on this : Feature Request #581 - Support for NewLineStyle property in the EditControl The NewLineStyle can accept values from the NewLineStyle enumerator which has values like Windows, Mac, Unix and Control which correspond to new line styles "\r", "\r", "\r" and "" respectively. Please let me know if this meets your requirements. Regards, Guru Patwal Syncfusion, Inc.


AG Arjan Griffioen November 30, 2005 10:29 AM UTC

Hi Guru, The NewLineStyle property as you described it will be great. Do you have any idea in which version that will be included? Regards, Arjan Griffioen (To-Increase)


AD Administrator Syncfusion Team November 30, 2005 02:01 PM UTC

Hi Arjan, Thanks for the update. We will try our very best to incorporate this feature in v4.1 final release due shortly. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


AD Administrator Syncfusion Team December 2, 2005 04:34 PM UTC

Hi Arjan, Feature 581 has been fully implemented and will be incorporated in v4.1 release due shortly. There is a slight variation in its implementation. Instead of adding a new property NewLineStyle, we have added a property - DefaultNewLineStyle and 2 methods - GetNewLineStyle and SetNewLineStyle. DefaultNewLineStyle property can be used to set the default new-line style (used on file creation), GetNewLineStyle method can be used to get current newline style and SetNewLineStyle method can be used to change current new-line style. Please refer to the code snippet below for more information. this.editControl1.DefaultNewLineStyle = NewLineStyle.Control; NewLineStyle nlStyle = this.editControl1.GetNewLineStyle(); this.editControl1.SetNewLineStyle(NewLineStyle.Mac); We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon