Background color of readonly areas.

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Giulio De Vecchi - IT+Robotics
Version: 4.0.0284
I have an editor with some readonly areas.
I just want to set the background color of this readonly areas to white, instead of the default light-gray. I tried this:

VisualStudio2005SyntaxEditorRenderer r = editor.Renderer as VisualStudio2005SyntaxEditorRenderer;
r.TextAreaBackgroundFill = Color.White;

but this property is readonly.
Is it possible to accomplish that?


Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Giulio,

The ReadOnlySpanIndicator constructor has an overload where you can set the background color. That's what you'd want to use to change it to white or probably a better value of transparent.

Actipro Software Support

The latest build of this product (v21.1.0) was released 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.