---
title: "System::Text::RegularExpressions::Match::AddCapture method"
url: "https://reference.aspose.com/font/cpp/system.text.regularexpressions/match/addcapture/"
product: "Aspose.Font for C++"
description: "System::Text::RegularExpressions::Match::AddCapture method. Adds capture into match in C++."
---

## Match::AddCapture method


Adds capture into match.

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


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

## See Also

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