# SnapLine class

Namespace: [Grasshopper2.UI.Snap](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.snap.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class SnapLine : ISnapElement
```

Implements ISnapElement for individual lines.

## Constructors

- [SnapLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/ctor.md): Create a new snap line.

## Properties

- [Disjoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/disjoint.md): Gets whether this element consists of multiple disjoint pieces.
- [Infinite](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/infinite.md): Gets whether this line ought to be treated as infinitely long.
- [Line](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/line.md): Gets the line geometry.
- [Projection](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/projection.md): Gets the type of projection for this element.
- [Radius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/radius.md): Gets the radius within which this element is active.

## Methods

- [DistanceTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/distanceto.md): Compute the distance from a coordinate to this element.
- [Project](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.snap.snapline/project.md): (2 overloads)
