# StringView

> Constructs a StringView over an entire string.

## Definition

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

## StringView(string)

Constructs a [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md) over an entire string.

```csharp
public StringView(string baseString)
```

### Parameters

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

## StringView(string, int)

Constructs a [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md) from a string, starting at index **startIndex**.

```csharp
public StringView(string baseString, int startIndex)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The base string.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The starting index of the view.

## StringView(string, int, int)

Constructs a [StringView](/engine/6000.6/script-reference/unityeditor/search/stringview.md) from a string, starting at index **startIndex** and ending at, but not including, index **endIndex**.

```csharp
public StringView(string baseString, int startIndex, int endIndex)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The base string.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The starting index of the view.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The exclusive ending index of the view.
