Background color of readonly areas.

SyntaxEditor for Windows Forms Forum

Posted 14 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 14 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 (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.