语言

Capture.Index 属性

定义

获取原始字符串中找到捕获子字符串的第一个字符的位置。

public:
 property int Index { int get(); };
public int Index { get; }
member this.Index : int
Public ReadOnly Property Index As Integer

属性值

在找到捕获的子字符串的原始字符串中从零开始的位置。

适用于