Share via


RegexCollection.IndexOf Method (Regex)

Searches for the specified regular expression and returns the zero-based index of the first occurrence within the entire RegexCollection.

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
Function IndexOf ( _
    value As Regex _
) As Integer
int IndexOf(
    Regex value
)

Parameters

Return Value

Type: System.Int32
The zero-based index of the first occurrence of value within the entire RegexCollection, if found; otherwise, -1.

.NET Framework Security

See Also

Reference

RegexCollection Interface

IndexOf Overload

Microsoft.Office.Tools Namespace