BackColor support for LineNumberMargin

SyntaxEditor for Windows Forms Forum

Posted 5 years ago by Carlton Craighead
Avatar

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

Comments (2)

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

Hello,

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 5 years ago by Carlton Craighead
Avatar

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.

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