# QueryToken

> Represents a token of a query string.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public readonly struct QueryToken
```

## Constructors

| Constructor                                                                                                                                               | Description                                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| [QueryToken(System.String,System.Int32)](/engine/6000.6/script-reference/unityeditor/search/querytoken/ctor.md#querytoken\(string-int\))                  | Creates a token from a string and a position. |
| [QueryToken(System.String,System.Int32,System.Int32)](/engine/6000.6/script-reference/unityeditor/search/querytoken/ctor.md#querytoken\(string-int-int\)) | Creates a token from a string and a position. |

## Properties

| Property                                                                              | Description                                                            |
| ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [length](/engine/6000.6/script-reference/unityeditor/search/querytoken/length.md)     | The length of the token. Can be different than the length of the text. |
| [position](/engine/6000.6/script-reference/unityeditor/search/querytoken/position.md) | The position of the token in the query string.                         |
| [text](/engine/6000.6/script-reference/unityeditor/search/querytoken/text.md)         | The text representing the token.                                       |
