## ShapeCollection::Find(const U16String\&, int32_t, const FindOptions\&) method


Find shape by text.

```cpp
int32_t Aspose::Cells::Drawing::ShapeCollection::Find(const U16String &what, int32_t previous, const FindOptions &findOptions)
```


| Parameter | Type | Description |
| --- | --- | --- |
| what | const U16String\& | The text to search for. |
| previous | int32_t | The index of previous shape contains same text. -1 if searching from the start. |
| findOptions | const FindOptions\& | Find options |

## ReturnValue

The index of found shape, -1 if no shape is found.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [FindOptions](../../../aspose.cells/findoptions/)
* Class [ShapeCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
## ShapeCollection::Find(const char16_t*, int32_t, const FindOptions\&) method


Find shape by text.

```cpp
int32_t Aspose::Cells::Drawing::ShapeCollection::Find(const char16_t *what, int32_t previous, const FindOptions &findOptions)
```


| Parameter | Type | Description |
| --- | --- | --- |
| what | const char16_t* | The text to search for. |
| previous | int32_t | The index of previous shape contains same text. -1 if searching from the start. |
| findOptions | const FindOptions\& | Find options |

## ReturnValue

The index of found shape, -1 if no shape is found.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [FindOptions](../../../aspose.cells/findoptions/)
* Class [ShapeCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
