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


Vorwärtssuche nach Zeichen im Teilstring.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| c | char_t | Zu suchendes Zeichen. |
| startIndex | int | Index, bei dem die Suche beginnt. |
| count | int | Anzahl der zu durchsuchenden Zeichen. |

### ReturnValue

Index der ersten Zeichenposition seit startIndex oder -1, wenn nicht gefunden.

## Siehe auch

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


Vorwärtssuche nach Zeichen.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| c | char_t | Zu suchendes Zeichen. |
| startIndex | int | Index, bei dem die Suche beginnt. |

### ReturnValue

Index der ersten Zeichenposition seit startIndex oder -1, wenn nicht gefunden.

## Siehe auch

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


Vorwärts-Lookup von Teilzeichenketten.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| str | const String\& | Zu suchender Teilstring. |
| startIndex | int | Position im Quellstring, ab der die Suche beginnt. |
| count | int | Anzahl der zu durchsuchenden Zeichen. |

### ReturnValue

Index des zuerst gefundenen Teilstrings oder -1, wenn nicht gefunden. Bei leerer Suchzeichenkette wird immer startIndex zurückgegeben.

## Siehe auch

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


Vorwärts-Lookup von Teilzeichenketten.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| str | const String\& | Zu suchender Teilstring. |
| startIndex | int | Position im Quellstring, ab der die Suche beginnt. |
| comparison_type | System::StringComparison | [Comparison](../../comparison/) Modus. |

### ReturnValue

Index des zuerst gefundenen Teilstrings oder -1, wenn nicht gefunden. Bei leerer Suchzeichenkette wird immer startIndex zurückgegeben.

## Siehe auch

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


Vorwärts-Lookup von Teilzeichenketten.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| str | const String\& | Zu suchender Teilstring. |
| startIndex | int | Position im Quellstring, ab der die Suche beginnt. |

### ReturnValue

Index des zuerst gefundenen Teilstrings oder -1, wenn nicht gefunden. Bei leerer Suchzeichenkette wird immer startIndex zurückgegeben.

## Siehe auch

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


Vorwärts-Lookup von Teilzeichenketten.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| str | const String\& | Zu suchender Teilstring. |
| comparison_type | System::StringComparison | [Comparison](../../comparison/) Modus. |

### ReturnValue

Index des zuerst gefundenen Teilstrings oder -1, wenn nicht gefunden. Bei leerer Suchzeichenkette wird immer 0 zurückgegeben.

## Siehe auch

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


Vorwärts-Lookup von Teilzeichenketten.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Wert | const String\& | Zu suchender Teilstring. |
| startIndex | int | Position im Quellstring, ab der die Suche beginnt. |
| count | int | Anzahl der zu durchsuchenden Zeichen. |
| comparisonType | System::StringComparison | [Comparison](../../comparison/) Modus. |

### ReturnValue

Index des zuerst gefundenen Teilstrings oder -1, wenn nicht gefunden. Bei leerer Suchzeichenkette wird immer startIndex zurückgegeben.

## Siehe auch

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