Editor font attributes at runtime

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Silvano Rinaudo - Chief, WEST CONSULTING
Avatar
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 13 years ago by Matthew Smith - Developer, One Plus One Solutions Pty Limited
Avatar
Hi,

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 (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.