TextExtensions.IndexOf(TextRange, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the position of the given text in the range. Returns -1 if the text can't be found.
public static int IndexOf (this Microsoft.VisualStudio.Extensibility.Editor.TextRange text, string value, bool ignoreCase = false);
static member IndexOf : Microsoft.VisualStudio.Extensibility.Editor.TextRange * string * bool -> int
<Extension()>
Public Function IndexOf (text As TextRange, value As String, Optional ignoreCase As Boolean = false) As Integer
Parameters
- text
- TextRange
- value
- String
- ignoreCase
- Boolean