## U16String::IndexOf(const char16_t) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const char16_t value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const char16_t | To be searched. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const char16_t, int32_t) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const char16_t value, int32_t startIndex) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const char16_t | To be searched. |
| startIndex | int32_t | The search starting position. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const char16_t, int32_t, int32_t) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const char16_t value, int32_t startIndex, int32_t count) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const char16_t | To be searched. |
| startIndex | int32_t | The search starting position. |
| count | int32_t | The number of character positions to examine. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const char16_t*) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const char16_t *value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const char16_t* | To be searched. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const U16String\&) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const U16String &value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const U16String\& | To be searched. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const U16String\&, int32_t) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const U16String &value, int32_t startIndex) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const U16String\& | To be searched. |
| startIndex | int32_t | The search starting position. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const U16String\&, int32_t, int32_t) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const U16String &value, int32_t startIndex, int32_t count) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const U16String\& | To be searched. |
| startIndex | int32_t | The search starting position. |
| count | int32_t | The number of character positions to examine. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const U16String\&, bool) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const U16String &value, bool ignoreCase) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const U16String\& | To be searched. |
| ignoreCase | bool | true to ignore case during the comparison; otherwise, false. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::IndexOf(const U16String\&, int32_t, int32_t, bool) const method


Returns the index of the first occurrence of the value in this.

```cpp
int32_t Aspose::Cells::U16String::IndexOf(const U16String &value, int32_t startIndex, int32_t count, bool ignoreCase) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const U16String\& | To be searched. |
| startIndex | int32_t | The search starting position. |
| count | int32_t | The number of character positions to examine. |
| ignoreCase | bool | true to ignore case during the comparison; otherwise, false. |

## ReturnValue

The zero-based index position of value if that character is found, or -1 if it is not.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
