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


Αναζήτηση χαρακτήρα προς τα εμπρός σε υποσυμβολοσειρά.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| c | char_t | Χαρακτήρας προς αναζήτηση. |
| startIndex | int | Δείκτης από όπου ξεκινά η αναζήτηση. |
| count | int | Αριθμός χαρακτήρων προς εξέταση. |

### ReturnValue

Δείκτης της πρώτης θέσης χαρακτήρα από το startIndex ή -1 εάν δεν βρεθεί.

## Δείτε επίσης

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


Αναζήτηση χαρακτήρα προς τα εμπρός.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| c | char_t | Χαρακτήρας προς αναζήτηση. |
| startIndex | int | Δείκτης από όπου ξεκινά η αναζήτηση. |

### ReturnValue

Δείκτης της πρώτης θέσης χαρακτήρα από το startIndex ή -1 εάν δεν βρεθεί.

## Δείτε επίσης

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


Αναζήτηση προς τα εμπρός σε υποσυμβολοσειρά.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| str | const String\& | Υποσυμβολοσειρά προς αναζήτηση. |
| startIndex | int | Θέση στη πηγαία συμβολοσειρά από όπου ξεκινά η αναζήτηση. |
| count | int | αριθμός χαρακτήρων προς εξέταση. |

### ReturnValue

Δείκτης της πρώτης ευρεθείσας υποσυμβολοσειράς ή -1 αν δεν βρεθεί. Για κενή συμβολοσειρά αναζήτησης, πάντα επιστρέφει το startIndex.

## Δείτε επίσης

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


Αναζήτηση προς τα εμπρός σε υποσυμβολοσειρά.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| str | const String\& | Υποσυμβολοσειρά προς αναζήτηση. |
| startIndex | int | Θέση στη πηγαία συμβολοσειρά από όπου ξεκινά η αναζήτηση. |
| comparison_type | System::StringComparison | Λειτουργία [Comparison](../../comparison/). |

### ReturnValue

Δείκτης της πρώτης ευρεθείσας υποσυμβολοσειράς ή -1 αν δεν βρεθεί. Για κενή συμβολοσειρά αναζήτησης, πάντα επιστρέφει το startIndex.

## Δείτε επίσης

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


Αναζήτηση προς τα εμπρός σε υποσυμβολοσειρά.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| str | const String\& | Υποσυμβολοσειρά προς αναζήτηση. |
| startIndex | int | Θέση στη πηγαία συμβολοσειρά από όπου ξεκινά η αναζήτηση. |

### ReturnValue

Δείκτης της πρώτης ευρεθείσας υποσυμβολοσειράς ή -1 αν δεν βρεθεί. Για κενή συμβολοσειρά αναζήτησης, πάντα επιστρέφει το startIndex.

## Δείτε επίσης

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


Αναζήτηση προς τα εμπρός σε υποσυμβολοσειρά.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| str | const String\& | Υποσυμβολοσειρά προς αναζήτηση. |
| comparison_type | System::StringComparison | Λειτουργία [Comparison](../../comparison/). |

### ReturnValue

Δείκτης της πρώτης ευρεθείσας υποσυμβολοσειράς ή -1 αν δεν βρεθεί. Για κενή συμβολοσειρά αναζήτησης, πάντα επιστρέφει 0.

## Δείτε επίσης

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


Αναζήτηση προς τα εμπρός σε υποσυμβολοσειρά.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| τιμή | const String\& | Υποσυμβολοσειρά προς αναζήτηση. |
| startIndex | int | Θέση στη πηγαία συμβολοσειρά από όπου ξεκινά η αναζήτηση. |
| count | int | αριθμός χαρακτήρων προς εξέταση. |
| comparisonType | System::StringComparison | Λειτουργία [Comparison](../../comparison/). |

### ReturnValue

Δείκτης της πρώτης ευρεθείσας υποσυμβολοσειράς ή -1 αν δεν βρεθεί. Για κενή συμβολοσειρά αναζήτησης, πάντα επιστρέφει το startIndex.

## Δείτε επίσης

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