SyntaxEditor EOL (LineTerminator)

SyntaxEditor for WPF Forum

Posted 9 years ago by \アッカリーン/
Version: 13.1.0581


I was just wondering if there's a property in the editor that retains what EOL terminators were part of the document while/before it was being loaded. I realize the editor converts everything to \n's internally, but I'd like to preserve the EOL character(s) based on what file was loaded when/if the document's saved back out again. If I wrote separate code to check during the load process, I'd potentially have to scan the file twice.


Comments (2)

Answer - Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA

Hello, the various document.LoadFile methods return the LineTerminator that they think was in use.

Actipro Software Support

Posted 9 years ago by \アッカリーン/

I am blind. Thank you. I searched through the documentation but didn't see anything immediate. I really appreciate the quick response.

The latest build of this product (v22.1.3) was released 16 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.