使用c#过滤RichTextBox中的特定行 [英] Filter Specific lines in RichTextBox Using c#

查看:155
本文介绍了使用c#过滤RichTextBox中的特定行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...
我正在在运行时在Richtextbox中加载文本文件.它工作正常,但我只想获取其中包含"Demo1"的特定行.

以下是对行的说明,我们仅需从中获取"Demo1"包含的行.
1 |演示1 | 123 | CodeProject |问题
2 |演示2 | 123 | CodeProject |问题
3 |演示3 | 123 | CodeProject |问题
4 |演示1 | 819 | CodeProject |问题
5 |演示1 | 999 | CodeProject |问题


提前感谢...!

Hello Everyone...
I ''m working on Loading text file at runtime in Richtextbox. it is working fine but i want to fetch only that specific lines which contains ''Demo1'' in Lines.

following is an illustration of lines from where we need to fetch only ''Demo1'' contains lines.
1 | Demo1 | 123 | CodeProject | Question
2 | Demo2 | 123 | CodeProject | Question
3 | Demo3 | 123 | CodeProject | Question
4 | Demo1 | 819 | CodeProject | Question
5 | Demo1 | 999 | CodeProject | Question


Thanx in advance...!

推荐答案

http://stackoverflow.com/questions/10188933/richtextbox-with-text-filtering [ ^ ]
在这里获取解决方案....!
http://stackoverflow.com/questions/10188933/richtextbox-with-text-filtering[^]
Getting solution here....!


这篇关于使用c#过滤RichTextBox中的特定行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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