小编Yur*_*kov的帖子

突出显示AvalonEdit中所有选定单词的出现位置

我需要在AvalonEdit中突出显示所有选定单词.我创建了一个HihglinghtingRule类的实例:

 var rule = new HighlightingRule()
   {
       Regex = regex, //some regex for finding occurences
       Color = new HighlightingColor {Background = new SimpleHighlightingBrush(Colors.Red)}
   };
Run Code Online (Sandbox Code Playgroud)

我该怎么办?谢谢.

c# wpf highlighting textedit avalonedit

7
推荐指数
1
解决办法
2654
查看次数

标签 统计

avalonedit ×1

c# ×1

highlighting ×1

textedit ×1

wpf ×1