| Visual Basic (Declaration) | |
|---|---|
Overloads Public Function Find( _ ByVal str As String, _ ByVal start As Integer _ ) As Integer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
Parameters
- str
- The text to locate in the control.
- start
- The location within the control's text at which to begin searching.
Return Value
The location within the control where the search text was found.| C# | Copy Code |
|---|---|
private void Detail_Format(object
sender, System.EventArgs eArgs) | |
| Visual Basic | Copy Code |
|---|---|
Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format | |
The Find method searches for the text specified in the str parameter and returns the location of the first character within the control. If the property returns a negative value, the text string being searched for was not found within the contents of the control.
Note The Find methods that accept a string as a parameter cannot find text that is contained on more than one line of text within the RichTextBox. Performing such a search will return a value of negative one (-1).