Share via


RegexCollection.Item Property

Gets or sets the regular expression at the specified index.

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

Syntax

'Declaration
Default Property Item ( _
    index As Integer _
) As Regex
Regex this[
    int index
] { get; set; }

Parameters

  • index
    Type: System.Int32

    The zero-based index of the regular expression to get or set.

Property Value

Type: System.Text.RegularExpressions.Regex
The Regex at the specified index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

.NET Framework Security

See Also

Reference

RegexCollection Interface

Microsoft.Office.Tools Namespace