## String::LastIndexOf(char_t) const method


Ricerca all'indietro di carattere.

```cpp
int System::String::LastIndexOf(char_t value) const
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| value | char_t | Carattere da cercare. |

### ReturnValue

Indice dell'ultima posizione del carattere o -1 se non trovato.

## Vedi anche

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## String::LastIndexOf(char_t, int32_t) const method


Ricerca all'indietro di carattere.

```cpp
int System::String::LastIndexOf(char_t value, int32_t startIndex) const
```


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

### ReturnValue

Indice dell'ultima posizione del carattere a partire da startIndex o -1 se non trovato.

## Vedi anche

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## String::LastIndexOf(char_t, int32_t, int32_t) const method


Ricerca all'indietro di carattere.

```cpp
int System::String::LastIndexOf(char_t value, int32_t startIndex, int32_t count) const
```


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

### ReturnValue

Indice dell'ultima posizione del carattere a partire da startIndex o -1 se non trovato.

## Vedi anche

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


Ricerca all'indietro di sottostringa.

```cpp
int System::String::LastIndexOf(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 dell'ultima sottostringa trovata o -1 se non trovata. Per una stringa di ricerca vuota, restituisce sempre la lunghezza della stringa.

## Vedi anche

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


Ricerca all'indietro di sottostringa.

```cpp
int System::String::LastIndexOf(const String &str, int startIndex=INT32_MAX) const
```


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

### ReturnValue

Indice dell'ultima sottostringa trovata o -1 se non trovata. Per una stringa di ricerca vuota, restituisce sempre la lunghezza della stringa.

## Vedi anche

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


Ricerca all'indietro di sottostringa.

```cpp
int System::String::LastIndexOf(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 dell'ultima sottostringa trovata o -1 se non trovata. Per una stringa di ricerca vuota, restituisce sempre la lunghezza della stringa.

## Vedi anche

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


Ricerca all'indietro di sottostringa.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| value | 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 | StringComparison | Modalità [Comparison](../../comparison/). |

### ReturnValue

Indice dell'ultima sottostringa trovata o -1 se non trovata. Per una stringa di ricerca vuota, restituisce sempre startIndex+count.

## Vedi anche

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