Skip to content

Commit 693c288

Browse files
Update README.md
1 parent bf6a14c commit 693c288

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
In [WPF TreeViewAdv](https://help.syncfusion.com/wpf/classic/treeview/overview) to search and highlight the item, **Search** method has been implemented which is used to compare the search text with model items and highlighted the matched text in TextBlock inside the [TreeViewItemAdv](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Tools.Controls.TreeViewItemAdv.html).
44

5-
``` c#
5+
```csharp
66
if (mainitem != null && MatchSearchText(model.Header))
77
{
88
// Function which is used to apply inline to the TextBlock
99
ApplyInline(mainitem, false);
1010
}
1111
```
12+
1213
Options like Search, FindPrevious, Find Next, SearchType (Contains, EndsWith, StartsWith options) has been used to match search text using ApplyInline method and apply the SearchBrush for highlighting the search text.
1314

14-
``` c#
15+
```csharp
1516
if (!string.IsNullOrEmpty(tempSearchText))
1617
{
1718
if (this.SearchType == SearchType.StartsWith)

0 commit comments

Comments
 (0)