User-defined display line heigth

SyntaxEditor for Windows Forms Forum

Posted 10 years ago by mmx
Version: 4.0.0273
Avatar
Is it possible to change height of arbitrary display line?

Comments (5)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
There is a SyntaxEditor.MinimumDisplayLineHeight property you can set, however if your make it smaller and the font would use more height than that, the font size's height will be used. So for smaller display line heights, you'd probably need to reduce font size too.

The setting affects all lines, there isn't a way to change it just for specific lines.


Actipro Software Support

Posted 10 years ago by mmx
Avatar
What if override SyntaxEditor.OnRender ?
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
That only renders the line in the space designated. It won't let you change the height.


Actipro Software Support

Posted 10 years ago by Max Kosenko
Avatar
I'll try to clarify the problem: in case 1 line in text is large (like 22pt) - others (10pt) will have unusable line heights. Do you see any workaround or it's impossible to do?
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Max,

Right now it keeps all lines the same height. This is something we hope to improve down the road when we convert some of the techniques we use in the WPF version and implement them in the WinForms version.


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 5 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.