# SnapLine class

Namespace: [Grasshopper2.Extensions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.extensions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class SnapLine : SnapElement
```

Represents a single snapping line in a graphics context.

## Constructors

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

## Properties

- [Centre](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/centre.md): Gets the centre of the domain.
- [Domain0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/domain0.md): Gets the lower domain of the line. If this property returns float.NegativeInfinity or float.MinValue, the line is considered to not be limited at this end.
- [Domain1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/domain1.md): Gets the upper domain of the line. If this property returns float.PositiveInfinity or float.MaxValue, the line is considered to not be limited at this end.
- [IsHorizontal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/ishorizontal.md): Gets whether this snapping line is horizontal.
- [IsLimitedDomain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/islimiteddomain.md): Gets whether this line has a limited domain.
- [IsVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/isvertical.md): Gets whether this snapping line is vertical.
- [Range0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/range0.md): Gets the beginning of the snapping domain in graphics coordinates.
- [Range1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/range1.md): Gets the end of the snapping domain in graphics coordinates.
- [Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/value.md): Gets the value for this snapping line.

## Methods

- [Snap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapline/snap.md): Snap a point to this element.

## Inherited Members

- From [SnapElement](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapelement.md): [Range](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapelement/range.md), [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.snapelement/compareto.md)
