How to use the GetViewLine when the line is blank?

SyntaxEditor for WPF Forum

Posted 12 years ago by Peter Luo - AIMNEXT
Version: 11.1.0545
Avatar
Hi,

I used the "IEditorViewLine GetViewLine(double verticalLocation, LocationToPositionAlgorithm algorithm)" method to get the view line, but if the line is blank, it will return null, like this:

1 | xxxxx
2 | xxxxx
3 |
4 | xxxxx

I cannot get the third line through this method, how to get it?

Thanks a lot!

Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Peter,

Can you post a snippet of code that you are using which we can paste in our SDI Editor demo to see this happen? Either that or make a new simple sample project that shows the issue and email it to our support address. Be sure to rename the .zip file extension so it doesn't get spam blocked.


Actipro Software Support

Posted 12 years ago by Peter Luo - AIMNEXT
Avatar
It's my problem, I have fixed it.

Thank you very much!
The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.