> 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/3.1/api/csharp/yarn.compiler/yarn.compiler.range.md).

# Range

Class in [Yarn.Compiler](/3.1/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(int,int,int,int)](/3.1/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range..ctor-1.md)   | Initializes a new instance of the [Range](/3.1/api/csharp/yarn.compiler/yarn.compiler.range.md) class, given start and end information. |
| [Range(Position,Position)](/3.1/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range..ctor-2.md) | Initializes a new instance of the [Range](/3.1/api/csharp/yarn.compiler/yarn.compiler.range.md) class, given start and end information. |

## Fields

| Name                                                                                                  | Description                               |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [InvalidRange](/3.1/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.invalidrange.md) | Represents the default value for a Range. |

## Methods

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

## Properties

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