NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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

Searches the text in a RichTextBox control for a given string.

[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
);
[JScript]
public function Find(
   str : String,
   start : int,
   end : int,
   options : RichTextBoxFinds
) : int;

Parameters

str
String to search for
start
Offset to start
end
Offset to end
options
Combination of RichTextBoxFind enum values.

Return Value

an integer offset where the match was found or-1 if failed.

See Also

RichTextBox Class | RichTextBox Members | System.WinForms Namespace | RichTextBox.Find Overload List