How to change Font and Size of Linenumbers

Topics: User Forum
Nov 28, 2008 at 11:33 AM
Edited Nov 28, 2008 at 11:34 AM
Hello, i use ScintillaNet 2.0 and i changed Font and Size for Text.

            //
            // scintilla
            //
            this.scintilla.UseBackColor = true;
            this.scintilla.BackColor = System.Drawing.Color.Silver;
            this.scintilla.Dock = System.Windows.Forms.DockStyle.Fill;
            this.scintilla.UseFont = true;
            this.scintilla.Font = new System.Drawing.Font("Courier New", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

How can i make it that Linenumbers use the same Font and Size?

thank´s

Mar 5, 2009 at 6:42 PM

this.scintilla.Styles.LineNumber.Font = new System.Drawing.Font("Courier New", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

I think.