Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
radRichTextBox1.Document.Selection.Clear();
DocumentTextSearch search =
new
DocumentTextSearch(radRichTextBox1.Document);
TextRange range = search.Find(
"start"
);
TextRange range2 = search.Find(
"end"
, range.EndPosition);
if
(range !=
null
&& range2 !=
)
{
this
.radRichTextBox1.Document.Selection.AddSelectionStart(range.StartPosition);
.radRichTextBox1.Document.Selection.AddSelectionEnd(range2.EndPosition);
.radRichTextBox1.ChangeListStyle(DefaultListStyles.Bulleted);
}
For
Each
item
As
String
In
itemList
radRichTextBox1.Insert(item & Environment.NewLine)
Next
'Format the item list as numbered list
radRichTextBox1.Document.Selection.Clear()
Dim
search
New
DocumentTextSearch(radRichTextBox1.Document)
range1
TextRange = search.Find(itemList(0))
range2
TextRange = search.Find(itemList(itemList.Count - 1), range1.EndPosition)
If
range1 IsNot
Nothing
And
range2 IsNot
Then
radRichTextBox1.Document.Selection.AddSelectionStart(range1.StartPosition)
radRichTextBox1.Document.Selection.AddSelectionEnd(range2.EndPosition)
radRichTextBox1.ChangeListStyle(DefaultListStyles.Numbered)
End