单击richtextbox中的每个令牌以在消息框中显示... [英] Click on each token in richtextbox to display in message box...

查看:77
本文介绍了单击richtextbox中的每个令牌以在消息框中显示...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我想单击富文本框中的每个标记,然后在消息框中显示该单击的标记...
有什么方法可以单击richtextbox中的单个令牌...
请帮助...

hello everyone
i want to click each token in a richtextbox and then display that clicked token in message box...
is there any way to click individual token in richtextbox...
kindly help...

推荐答案

您没有标记要使用的UI库.让我假设这是WPF(强烈建议).
另外,您也没有定义什么叫令牌.

使用System.Windows.Controls.RichTextBox,它具有类型System.Windows.Documents.TextPointer的属性CaretPosition.此类用于在文档结构的逻辑元素中进行导航.

—SA
You did not tag the UI library you want to use. Let me assume this is WPF (higly recommend).
Also, you did not define what do you call a token.

Use System.Windows.Controls.RichTextBox, it has the property CaretPosition of the type System.Windows.Documents.TextPointer. This class has all for navigation in logical elements of the document structure.

—SA


这篇关于单击richtextbox中的每个令牌以在消息框中显示...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆