## IndexOf(string, int, int, StringComparison) {#indexof_6}

Returns the zero-based index of the first occurrence of the specified string in the current instance.

```csharp
public int IndexOf(string value, int startIndex, int count, StringComparison comparisonType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The value. |
| startIndex | Int32 | The starting search position |
| count | Int32 | The count. |
| comparisonType | StringComparison | The type of search to use for the specified string |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(string, int, StringComparison) {#indexof_7}

Returns the zero-based index of the first occurrence of the specified string in the current instance. Parameters specify the starting search position in the current string and the type of search to use for the specified string.

```csharp
public int IndexOf(string value, int startIndex, StringComparison comparisonType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The value. |
| startIndex | Int32 | The starting search position |
| comparisonType | StringComparison | The type of search to use for the specified string |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(char, int, int) {#indexof_2}

Returns the zero-based index of the first occurrence of the specified character in this instance. The search starts at a specified character position and examines a specified number of character positions.

```csharp
public int IndexOf(char value, int startIndex, int count)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | Char | The value. |
| startIndex | Int32 | The starting search position |
| count | Int32 | The count. |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(string, StringComparison) {#indexof_8}

Returns the zero-based index of the first occurrence of the specified string in the current instance. A parameter specifies the type of search to use for the specified string.

```csharp
public int IndexOf(string value, StringComparison comparisonType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The value. |
| comparisonType | StringComparison | The type of search to use for the specified string |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(string, int, int) {#indexof_5}

Returns the zero-based index of the first occurrence of the specified string in this instance. The search starts at a specified character position and examines a specified number of character positions.

```csharp
public int IndexOf(string value, int startIndex, int count)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The value. |
| startIndex | Int32 | The starting search position |
| count | Int32 | The count. |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(char, int) {#indexof_1}

Returns the zero-based index of the first occurrence of the specified Unicode character in this string. The search starts at a specified character position.

```csharp
public int IndexOf(char value, int startIndex)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | Char | The value. |
| startIndex | Int32 | The starting search position |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(string) {#indexof_3}

Returns the zero-based index of the first occurrence of the specified string in this instance.

```csharp
public int IndexOf(string value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The value. |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(char) {#indexof}

Returns the zero-based index of the first occurrence of the specified Unicode character in this string.

```csharp
public int IndexOf(char value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | Char | The value. |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

## IndexOf(string, int) {#indexof_4}

Returns the zero-based index of the first occurrence of the specified string in this instance. The search starts at a specified character position.

```csharp
public int IndexOf(string value, int startIndex)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The value. |
| startIndex | Int32 | The starting search position |

### Return Value

The Int32.

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)


