# StringToValue(string)

> Converts a string to the value of the specified generic type from the subclass.

## Definition

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

```csharp
protected abstract TValueType StringToValue(string str)
```

### Parameters

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

### Returns

| Type | Description                        |
| ---- | ---------------------------------- |
| T    | A value converted from the string. |

### Remarks

Subclasses must implement this method.
