System::Text::RegularExpressions::CaptureCollection class
CaptureCollection class
由单个捕获组完成的捕获列表。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
class CaptureCollection : public System::Collections::Generic::List<CapturePtr>
方法
| 方法 | 描述 |
|---|---|
| Add(const CapturePtr&) override | 禁用集合修订。 |
| AddCapture(const CapturePtr&) | 用于向集合中添加捕获的服务方法。 |
| Clear() override | 禁用清理集合。 |
| get_Count() const override | 获取捕获的数量。 |
| get_IsReadOnly() const override | 将集合标记为只读。 |
| get_IsSynchronized() const | 将集合标记为未同步。 |
| idx_get(int) const override | Capture 访问器。 |
| operator[](int) | Capture 访问器。 |
| operator[](int) const | Capture 访问器。 |
| Remove(const CapturePtr&) override | 禁用集合修订。 |
Typedefs
| 类型定义 | 描述 |
|---|---|
| Base | Base 类型。 |
另见
- Class List
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++