---
title: "System::Text::RegularExpressions::CaptureCollection::AddCapture method"
url: "https://reference.aspose.com/font/cpp/system.text.regularexpressions/capturecollection/addcapture/"
product: "Aspose.Font for C++"
description: "System::Text::RegularExpressions::CaptureCollection::AddCapture method. Service method to add capture into collection in C++."
---

## CaptureCollection::AddCapture method


Service method to add capture into collection.

```cpp
void System::Text::RegularExpressions::CaptureCollection::AddCapture(const CapturePtr &item)
```


| Parameter | Type | Description |
| --- | --- | --- |
| item | const CapturePtr\& | Item to add. |

## See Also

* Typedef [CapturePtr](../../captureptr/)
* Class [CaptureCollection](../)
* Namespace [System::Text::RegularExpressions](../../)
* Library [Aspose.Font for C++](../../../)
