How to change font size and save the changes

SyntaxEditor for WPF Forum

Posted 12 years ago by Christel
Version: 12.1.0562


our customers got new monitors and now, the font size of the syntax editor is too small for them

They would like to have a setting for the font size to set and save it.

1. how can I change the font size in the syntax editor?

2. where can I save and reload it in the editor framework

3. can I modify the standard context menu, adding a new item "change font size to..."


I suggested already the great zooming function, but our customers don't like to change it every time they start the editor.

Do you have any Ideas?


Comments (1)

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

Hi Christel,

All you have to do is set the FontSize property on the SyntaxEditor, same as any TextBox and it will take effect.

To modify the default context menu you can override the CreateDefaultContextMenu method and update its result with your new menu item.

Actipro Software Support

The latest build of this product (v24.1.2) 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.