Wimark.Controls Class Library  

RichTextBox.Find(String, Int32, RichTextBoxFinds) Method

Searches the text in a RichTextBox control for a string at a specific location within the control and with specific options applied to the search.

[Visual Basic]
Overloads Public Function Find( _
   ByVal str As String, _
   ByVal start As Integer, _
   ByVal options As RichTextBoxFinds _
) As Integer 
[C#]
public int Find( 
   string str, 
   int start, 
   RichTextBoxFinds options 
);
[C++]
public: int Find( 
   String* str, 
   int start, 
   RichTextBoxFinds options 
);

Parameters

str
The text to locate in the control.
start
The location within the control's text at which to begin searching.
options
A bitwise combination of the RichTextBoxFinds values.

Return Value

The location within the control where the search text was found.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

RichTextBox Class | RichTextBox Members | Wimark.Controls Namespace