TextExtensions.LastIndexOf(TextRange, String, Boolean) Method

Definition

Determines the last position of the given text in the range. Returns -1 if the text can't be found.

public static int LastIndexOf (this Microsoft.VisualStudio.Extensibility.Editor.TextRange text, string value, bool ignoreCase = false);
static member LastIndexOf : Microsoft.VisualStudio.Extensibility.Editor.TextRange * string * bool -> int
<Extension()>
Public Function LastIndexOf (text As TextRange, value As String, Optional ignoreCase As Boolean = false) As Integer

Parameters

text
TextRange
value
String
ignoreCase
Boolean

Returns

Applies to