【问题标题】:AvalonEdit: how to remove hyperlink underline?AvalonEdit:如何删除超链接下划线?
【发布时间】:2014-07-17 12:36:41
【问题描述】:

我不想完全禁用超链接(通过Options.EnableHyperlinks),因为我希望能够通过CTRL + Click 打开链接,但我需要删除下划线。我该怎么做?

到目前为止,我在TextArea.TextView 中只找到了LinkTextForegroundBrushLinkTextBackgroundBrush

【问题讨论】:

    标签: c# syntax-highlighting avalonedit


    【解决方案1】:

    我最终修改了 AvalonEdit 源代码以添加此类选项,并在 GitHub 上创建了一个 fork/pull 请求。看起来它已合并到主存储库中。 https://github.com/icsharpcode/AvalonEdit/pull/10/commits

    【讨论】:

      【解决方案2】:

      刚遇到这个问题。

      textEditor.TextArea.TextView.LinkTextBackgroundBrush = Brushes.Orange;
      textEditor.TextArea.TextView.LinkTextForegroundBrush = Brushes.Black;
      textEditor.TextArea.TextView.LinkTextUnderline = false;
      

      【讨论】:

        猜你喜欢
        • 2013-09-19
        • 2020-10-30
        • 2013-11-10
        • 2013-06-16
        • 1970-01-01
        • 2012-03-06
        • 2016-04-30
        • 2013-03-17
        • 2020-06-28
        相关资源
        最近更新 更多