Partager via


RegexCollection.Item, propriété

Obtient ou définit l'expression régulière à l'index spécifié.

Espace de noms :  Microsoft.Office.Tools
Assembly :  Microsoft.Office.Tools.Common (dans Microsoft.Office.Tools.Common.dll)

Syntaxe

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

Paramètres

  • index
    Type : System.Int32
    Index de base zéro de l'expression régulière à obtenir ou définir.

Valeur de propriété

Type : System.Text.RegularExpressions.Regex
Regex à l'index spécifié.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index est inférieur à zéro.

ou

index est supérieur ou égal à Count.

Sécurité .NET Framework

Voir aussi

Référence

RegexCollection Interface

Microsoft.Office.Tools, espace de noms