Class DocumentTextSearch
Provides functionality for searching text in a Rad
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.TextSearch
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class DocumentTextSearch
Constructors
DocumentTextSearch(RadDocument)
Initializes a new instance of the Document
Declaration
public DocumentTextSearch(RadDocument document)
Parameters
Rad The document to search in. |
DocumentTextSearch(RadDocument, RegexOptions)
Initializes a new instance of the Document
Declaration
public DocumentTextSearch(RadDocument document, RegexOptions options)
Parameters
Rad The document to search in. |
System. The options which will be used in the search. |
Methods
Find(String)
Finds the string that matches a specified regular expression.
Declaration
public TextRange Find(string regex)
Parameters
System. The regular expression. |
Returns
Text The first match. |
Find(String, DocumentPosition)
Finds all strings after a specific position in the document that match a specified regular expression.
Declaration
public TextRange Find(string regex, DocumentPosition fromPosition)
Parameters
System. The regular expression. |
Document Start position. |
Returns
Text The first match. |
Find(String, DocumentPosition, DocumentPosition)
Finds a string between specific positions in the document that matches a specified regular expression.
Declaration
public TextRange Find(string regex, DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
System. The regular expression. |
Document Start position. |
Document End position. |
Returns
Text The first match. |
FindAll(String)
Finds all strings in the document that match a specified regular expression.
Declaration
public IEnumerable<TextRange> FindAll(string regex)
Parameters
System. The regular expression. |
Returns
FindAll(String, DocumentPosition, DocumentPosition)
Finds all strings between specific positions in the document that match a specified regular expression.
Declaration
public IEnumerable<TextRange> FindAll(string regex, DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
System. The regular expression. |
Document Start position. |
Document End position. |