Wimark.Controls Class Library  

RichTextBox.Find(String, Int32, Int32, RichTextBoxFinds) Method

Searches the text in a RichTextBox control for a string within a range of text 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 end As Integer, _
   ByVal options As RichTextBoxFinds _
) As Integer 
[C#]
public int Find( 
   string str, 
   int start, 
   int end, 
   RichTextBoxFinds options 
);
[C++]
public: int Find( 
   String* str, 
   int start, 
   int end, 
   RichTextBoxFinds options 
);

Parameters

str
The text to locate in the control.
start
The location within the control's text at which to begin searching.
end
The location within the control's text at which to end searching. This value must be equal to negative one (-1) or greater than or equal to the start parameter.
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