System.Windows.Forms.RichTextBoxFinds Enumeration

Specifies how a text search is carried out in a System.Windows.Forms.RichTextBox control.

Syntax

[System.Flags]
public enum RichTextBoxFinds

Remarks

An application locates text in the System.Windows.Forms.RichTextBox control by calling the RichTextBox.Find(string) method of the System.Windows.Forms.RichTextBox control. This enumeration enables you to specify how the search is performed when the RichTextBox.Find(string) method is called. You can combine one or more values from this enumeration to specify more than one search option when calling the RichTextBox.Find(string) method.

Members

Member NameDescription
MatchCase

Locate only instances of the search text that have the exact casing.

NoHighlight

The search text, if found, should not be highlighted.

None

Locate all instances of the search text, whether the instances found in the search are whole words or not.

Reverse

The search starts at the end of the control's document and searches to the beginning of the document.

WholeWord

Locate only instances of the search text that are whole words.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0