> 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/yarn.compiler.range..ctor-1.md).

# Range(int,int,int,int)

Constructor in [Range](/2.2/api/csharp/yarn.compiler/yarn.compiler.range.md)

## Summary

Initializes a new instance of the [Range](/2.2/api/csharp/yarn.compiler/yarn.compiler.range.md) class, given start and end information.

```csharp
public Range(int startLine, int startCharacter, int endLine, int endCharacter)
```

## Parameters

| Name                 | Description                                                  |
| -------------------- | ------------------------------------------------------------ |
| `int` startLine      | The zero-indexed line number of the start of the range.      |
| `int` startCharacter | The zero-indexed character number of the start of the range. |
| `int` endLine        | The zero-indexed line number of the end of the range.        |
| `int` endCharacter   | The zero-indexed character number of the end of the range.   |
