# StringToValue(string)

> Converts a string to a long integer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
protected override long StringToValue(string str)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string to convert.

### Returns

| Type                                                        | Description                              |
| ----------------------------------------------------------- | ---------------------------------------- |
| [long](https://learn.microsoft.com/dotnet/api/system.int64) | The long integer parsed from the string. |
