> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.range.md).

# Range

Class in [Yarn.Compiler](/api/csharp/yarn.compiler.md)

Inherits from `System.Object`

## Summary

Represents a range of text in a multi-line string.

```csharp
public class Range
```

## Constructors

| Name                                                                                                   | Description                                                                                                                         |
| ------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| [Range()](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range..ctor-2.md)                | Initializes a new instance of the [Range](/api/csharp/yarn.compiler/yarn.compiler.range.md) class.                                  |
| [Range(int,int,int,int)](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range..ctor-1.md) | Initializes a new instance of the [Range](/api/csharp/yarn.compiler/yarn.compiler.range.md) class, given start and end information. |

## Methods

| Name                                                                                              | Description |
| ------------------------------------------------------------------------------------------------- | ----------- |
| [Equals(object)](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.equals.md)     |             |
| [GetHashCode()](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.gethashcode.md) |             |
| [ToString()](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.tostring.md)       |             |

## Properties

| Name                                                                                    | Description                                          |
| --------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [End](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.end.md)         | Gets or sets the end position of this range.         |
| [IsValid](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.isvalid.md) | Gets a value indicating whether this range is valid. |
| [Start](/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.start.md)     | Gets or sets the start position of this range.       |
