RegexCollection.IndexOf(Regex) Method
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.
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);
public int IndexOf (System.Text.RegularExpressions.Regex value);
abstract member IndexOf : System.Text.RegularExpressions.Regex -> int
Public Function IndexOf (value As Regex) As Integer
- value
- Regex
The regular expression to locate in the RegexCollection.
The zero-based index of the first occurrence of value
within the entire RegexCollection, if found; otherwise, -1.
Prodotto | Versioni |
---|---|
Visual Studio Tools for Office | 2017, 2019, 2022 |