Background color of readonly areas.

SyntaxEditor for Windows Forms Forum

Posted 9 years ago by Giulio De Vecchi - IT+Robotics
Version: 4.0.0284
Avatar
Hi,
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?

Thanks.
Giulio

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.