【问题标题】:Retrieving the word from the mouse cursor position从鼠标光标位置检索单词
【发布时间】:2012-05-21 06:20:41
【问题描述】:

我正在尝试从鼠标光标当前聚焦的 RichTextEdit 控件中检索单词

RichTextEdit 中是否有任何特定事件可用于检索单词?

谢谢

问候, 巴兰

【问题讨论】:

    标签: c# richtextbox rich-text-editor


    【解决方案1】:

    如果您不是在谈论 Devexpress RichTextEdit,那么我认为您可以使用此处显示的 carret 位置

    Problem with finding the next word in RichTextBox

    也可以通过 MouseDown 事件来使用它。

    这也许也有帮助

    http://msdn.microsoft.com/en-us/library/system.windows.controls.richtextbox.onmouseleftbuttondown%28v=vs.95%29.aspx

    【讨论】:

      猜你喜欢
      • 2011-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-24
      • 2011-04-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多