Wimark.Controls Class Library  

RichTextBox.Find(String) Method

Searches the text in a RichTextBox control for a string.

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

Parameters

str
The text to locate in the control.

Return Value

The location within the control where the search text was found or a negative one (-1) if the search string is not found or an empty search string is specified in the str parameter.

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