Number of characters in a physical line

SyntaxEditor for WPF Forum

Posted 2 years ago by Daisuke Nakada
Version: 17.2.0664
Avatar

Hi,

 

I would like to ask I can specify the maximum number of characters in a physical line (not in a visual line.)

 

In my scenario, more than 200 characters in a single line is inappropriate (too long).

So I want to specify the maximum character number (200 characters).

 

How can I achieve this?

 

Thank you.

Comments (2)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We don't have anything built in for limiting the number of characters in a line.  What you might be able to do though is handle the SyntaxEditor.DocumentTextChanging event and if the new snapshot has a line more than 200 characters, set e.Cancel = true to try and prevent the text change.


Actipro Software Support

Posted 2 years ago by Daisuke Nakada
Avatar

Thank you for your advise.

I've tried it and it works fine.

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.