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


Ricerca in avanti del carattere nella sottostringa.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| c | char_t | Carattere da cercare. |
| startIndex | int | Indice da cui iniziare la ricerca. |
| count | int | Numero di caratteri da esaminare. |

### ReturnValue

Indice della prima posizione del carattere a partire da startIndex o -1 se non trovato.

## Vedi anche

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


Ricerca in avanti del carattere.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| c | char_t | Carattere da cercare. |
| startIndex | int | Indice da cui iniziare la ricerca. |

### ReturnValue

Indice della prima posizione del carattere a partire da startIndex o -1 se non trovato.

## Vedi anche

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


Ricerca in avanti di sottostringa.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| str | const String\& | Sottostringa da cercare. |
| startIndex | int | Posizione nella stringa di origine da cui iniziare la ricerca. |
| count | int | numero di caratteri da esaminare. |

### ReturnValue

Indice della prima sottostringa trovata o -1 se non trovata. Per stringa di ricerca vuota, restituisce sempre startIndex.

## Vedi anche

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


Ricerca in avanti di sottostringa.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| str | const String\& | Sottostringa da cercare. |
| startIndex | int | Posizione nella stringa di origine da cui iniziare la ricerca. |
| comparison_type | System::StringComparison | Modalità [Comparison](../../comparison/). |

### ReturnValue

Indice della prima sottostringa trovata o -1 se non trovata. Per stringa di ricerca vuota, restituisce sempre startIndex.

## Vedi anche

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


Ricerca in avanti di sottostringa.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| str | const String\& | Sottostringa da cercare. |
| startIndex | int | Posizione nella stringa di origine da cui iniziare la ricerca. |

### ReturnValue

Indice della prima sottostringa trovata o -1 se non trovata. Per stringa di ricerca vuota, restituisce sempre startIndex.

## Vedi anche

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


Ricerca in avanti di sottostringa.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| str | const String\& | Sottostringa da cercare. |
| comparison_type | System::StringComparison | Modalità [Comparison](../../comparison/). |

### ReturnValue

Indice della prima sottostringa trovata o -1 se non trovata. Per stringa di ricerca vuota, restituisce sempre 0.

## Vedi anche

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


Ricerca in avanti di sottostringa.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| valore | const String\& | Sottostringa da cercare. |
| startIndex | int | Posizione nella stringa di origine da cui iniziare la ricerca. |
| count | int | numero di caratteri da esaminare. |
| comparisonType | System::StringComparison | Modalità [Comparison](../../comparison/). |

### ReturnValue

Indice della prima sottostringa trovata o -1 se non trovata. Per stringa di ricerca vuota, restituisce sempre startIndex.

## Vedi anche

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