## String::IndexOf(char_t, int, int) const method


Búsqueda hacia adelante de carácter en subcadena.

```cpp
int System::String::IndexOf(char_t c, int startIndex, int count) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| c | char_t | Carácter a buscar. |
| startIndex | int | [Index](../../index/) para iniciar la búsqueda en. |
| count | int | Número de caracteres a examinar. |

### ReturnValue

[Index](../../index/) of first character position since startIndex or -1 if not found.

## Ver también

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::IndexOf(char_t, int) const method


Búsqueda hacia adelante de carácter.

```cpp
int System::String::IndexOf(char_t c, int startIndex=0) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| c | char_t | Carácter a buscar. |
| startIndex | int | [Index](../../index/) para iniciar la búsqueda en. |

### ReturnValue

[Index](../../index/) of first character position since startIndex or -1 if not found.

## Ver también

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::IndexOf(const String\&, int, int) const method


Búsqueda hacia adelante de subcadena.

```cpp
int System::String::IndexOf(const String &str, int startIndex, int count) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| str | const String\& | Subcadena a buscar. |
| startIndex | int | Posición en la cadena fuente para iniciar la búsqueda. |
| count | int | número de caracteres a examinar. |

### ReturnValue

[Index](../../index/) of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

## Ver también

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::IndexOf(const String\&, int, System::StringComparison) const method


Búsqueda hacia adelante de subcadena.

```cpp
int System::String::IndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| str | const String\& | Subcadena a buscar. |
| startIndex | int | Posición en la cadena fuente para iniciar la búsqueda. |
| comparison_type | System::StringComparison | Modo [Comparison](../../comparison/). |

### ReturnValue

[Index](../../index/) of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

## Ver también

* Class [String](../)
* Enum [StringComparison](../../stringcomparison/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::IndexOf(const String\&, int) const method


Búsqueda hacia adelante de subcadena.

```cpp
int System::String::IndexOf(const String &str, int startIndex=0) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| str | const String\& | Subcadena a buscar. |
| startIndex | int | Posición en la cadena fuente para iniciar la búsqueda. |

### ReturnValue

[Index](../../index/) of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

## Ver también

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::IndexOf(const String\&, System::StringComparison) const method


Búsqueda hacia adelante de subcadena.

```cpp
int System::String::IndexOf(const String &str, System::StringComparison comparison_type) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| str | const String\& | Subcadena a buscar. |
| comparison_type | System::StringComparison | Modo [Comparison](../../comparison/). |

### ReturnValue

[Index](../../index/) of first found substring or -1 if not found. For empty lookup string, always returns 0.

## Ver también

* Class [String](../)
* Enum [StringComparison](../../stringcomparison/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::IndexOf(const String\&, int, int, System::StringComparison) const method


Búsqueda hacia adelante de subcadena.

```cpp
int System::String::IndexOf(const String &value, int startIndex, int count, System::StringComparison comparisonType) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| valor | const String\& | Subcadena a buscar. |
| startIndex | int | Posición en la cadena fuente para iniciar la búsqueda. |
| count | int | número de caracteres a examinar. |
| comparisonType | System::StringComparison | Modo [Comparison](../../comparison/). |

### ReturnValue

[Index](../../index/) of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

## Ver también

* Class [String](../)
* Enum [StringComparison](../../stringcomparison/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
