icsharpcode / AvalonEdit

The WPF-based text editor component used in SharpDevelop
http://avalonedit.net/
MIT License
1.85k stars 469 forks source link

How to change the current line border and background? #378

Closed NeuroWhAI closed 1 year ago

NeuroWhAI commented 1 year ago

Hello, I saw there are CurrentLineBorder and CurrentLineBackground properties to set the highlight style of current line. But, I couldn't figure out how to access those properties in code. Does anyone know about this?

jimfoye commented 1 year ago

They are TextView properties.

NeuroWhAI commented 1 year ago

@jimfoye

Thank you for your reply. But, I can't find a TextView property in the ICSharpCode.AvalonEdit.TextEditor. Please let me know where is it.

jimfoye commented 1 year ago

TextView is a property of TextArea. Some good reading:

https://www.codeproject.com/Articles/42490/Using-AvalonEdit-WPF-Text-Editor

NeuroWhAI commented 1 year ago

Thank you so much!