# Substring

> Gets a substring of the current Format.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings.Core.Parsing](/engine/6000.7/script-reference/unity/smartstrings/core/parsing.md)
* **Assembly:** UnityEngine.SmartStringsModule

## Substring(int)

Gets a substring of the current [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md).

```csharp
public Format Substring(int start)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Start index of the substring.

### Returns

| Type                                                                                | Description                                                                                                       |
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) | The substring of the current [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md). |

## Substring(int, int)

Gets a substring of the current [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md).

```csharp
public Format Substring(int start, int length)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Start index of the substring.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of characters in the substring.

### Returns

| Type                                                                                | Description                                                                                                       |
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) | The substring of the current [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md). |
