| Author: ABitSmart 07 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Something like this,
//RichTextBox rtbx = new RichTextBox(); //List<string> lstOfNames = new List<string>();
System.Windows.Documents.TextRange textRnge = new System.Windows.Documents.TextRange(rtbx.Document.ContentStart, rtbx.Document.ContentEnd);
foreach(string name in lstOfNames) { if(textRnge.Text.Contains(name)) { //do your processing } }
Kind regards, ABitSmart DNS Web-master, DNS MVM My blog Thoughts.exe
|