Editor font attributes at runtime

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by Silvano Rinaudo - Chief, WEST CONSULTING
I'm a new SyntaxEditor user and also a new VS 2005 user.
How can I change editor font attributes (font size, bold, ...)
at runtime? Is there a simple way to do it?

Many thanks.

[Modified at 07/03/2006 12:09 PM]

Comments (1)

Posted 18 years ago by Matthew Smith - Developer, One Plus One Solutions Pty Limited

Try something like this (in VB.Net)

syntaxEditor1.Font = New System.Drawing.Font("Courier New",9.75!,System.Drawing.FontStyle.Bold)
You can set the FontStyle to Regular, Italic, Strikeout, Underline from there.

Regards, Matt

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.