# GH_SourceCodeBlock class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_SourceCodeBlock
```

Represents a continuous collection of source code lines with similar READONLY flags.

## Constructors

- [GH_SourceCodeBlock](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/ctor.md): Create a new block.

## Fields

- [m_0](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/m-0.md)
- [m_1](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/m-1.md)
- [m_readonly](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/m-readonly.md)

## Properties

- [End](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/end.md): Inclusive end line index of block.
- [LineCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/linecount.md): Number of lines contained in this block.
- [Readonly](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/readonly.md): Gets the Readonly flag for this block.
- [Start](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/start.md): Inclusive start line index of block.

## Methods

- [Grow](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeblock/grow.md): Grow this block to include the given line index.
