Share via


Index Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The position in the original string where the first character of the captured substring is found.

Namespace:  System.Text.RegularExpressions
Assembly:  System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)

Syntax

'Declaration
Public ReadOnly Property Index As Integer
public int Index { get; }
public:
property int Index {
    int get ();
}
member Index : int with get
function get Index () : int

Property Value

Type: System. . :: . .Int32
The zero-based starting position in the original string where the captured substring is found.

.NET Framework Security

See Also

Reference

Capture Class

System.Text.RegularExpressions Namespace