BackColor support for LineNumberMargin

SyntaxEditor for Windows Forms Forum

The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was before this thread was created.
Posted 8 months ago by Carlton Craighead

Please consider a property that allows one to set the LineNumberMargin back color.  Thanks.

Comments (2)

Answer - Posted 8 months ago by Actipro Software Support - Cleveland, OH, USA


If you run our main SDI Editor sample and click the "Renderer" radio button on the upper right, you'll see the renderer used to draw the control.  The LineNumberMarginBackground can be set to a BackgroundFill with a different color there.

Actipro Software Support

Posted 8 months ago by Carlton Craighead

Thanks.  After reviewing the sample and reading the doc on renderers, and since I just need a global change, I was able to use this code to change the line number margin...

var r = (VisualStudio2005SyntaxEditorRenderer)SyntaxEditor1.RendererResolved;
((SolidColorBackgroundFill)r.LineNumberMarginBackgroundFill).Color = Color.FromArgb(240, 240, 240);

 Appreciate the help.

Add Comment

Please log in to a validated account to post comments.