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

# Range

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

## Methods

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

## Properties

| Name                                                                                    | Description                                    |
| --------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [End](/2.2/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.end.md)     | Gets or sets the end position of this range.   |
| [Start](/2.2/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.start.md) | Gets or sets the start position of this range. |
