# Range

Class in [Yarn.Compiler](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.compiler)

Inherits from `System.Object`

## Summary

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

```csharp
public class Range
```

## Constructors

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

## Methods

| Name                                                                                                                           | Description |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| [Equals(object)](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.equals)     |             |
| [GetHashCode()](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.compiler/yarn.compiler.range/yarn.compiler.range.gethashcode) |             |

## Properties

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