Version

FindReplaceManager Class

Provides Find Matches management as well as Find/Replace and highlight services for XamRichTextEditor and Infragistics.Documents.RichText.RichTextDocument. An instance of this class is accessible via the XamRichTextEditor.FindReplaceManager property.
Syntax
'Declaration
 
Public Class FindReplaceManager 
public class FindReplaceManager 
Remarks
The FindReplaceManager exposes methods for Finding (FindInDocument, FindInSpan, FindInSpans and FindInSelection) and Replacing (ReplaceCurrent and ReplaceAll) text. The FindReplaceManager also implements IEnumerable and IEnumerator for iterating through the Infragistics.Documents.RichText.FindMatchs generated by the most recent find operation. Note that the XamRichTextEditor.Selection is modified to contain all occurrences of text discovered when a Find operation is performed. The FindReplaceManager also exposes Highlight and ClearHighlighting methods for managing the highlighting of one or more text strings. Each call to Highlight will add the matches to the current list of highligted items while ClearHighlighting will clear the list of highlighted items. Note that any change to the document will clear the current list of highlighted items.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also