Share via


TextExtensions.IndexOf(TextRange, String, Boolean) Method

Definition

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

Returns

Applies to