Leggere in inglese

Condividi tramite


RegexCollection.IndexOf(Regex) Method

Definition

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

public int IndexOf (System.Text.RegularExpressions.Regex value);

Parameters

value
Regex

The regular expression to locate in the RegexCollection.

Returns

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

Applies to

Prodotto Versioni
Visual Studio Tools for Office 2017, 2019, 2022