# DragHit class

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

```cs
public sealed class DragHit
```

All the relevant data to do with a single ray-shape hit.

## Properties

- [ActiveCurves](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/activecurves.md): Gets the active curves to draw as dragging hints. These mark what the drag will directly affect and are drawn solid.
- [HintingCurves](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/hintingcurves.md): Gets the hinting curves to draw as dragging hints. These provide context (the shape being edited, guide lines) and are drawn thin and dashed.
- [LargePoints](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/largepoints.md): Gets the large handle points to draw as dragging hints. These mark the location(s) under the cursor which would be dragged.
- [Object](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/object.md): Gets the object which was hit. This is _probably_ also an [IParameter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.iparameter.md), but that is not really guaranteed.
- [ParameterOnRay](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/parameteronray.md): Parameter on ray closest to shape.
- [PointOnRay](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/pointonray.md): Gets the point on the ray at the given parameter.
- [PointOnShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/pointonshape.md): Point on shape closest to ray.
- [Separation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/separation.md): Gets the visual separation (in pixels) between the ray point and the shape point.
- [Site](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/site.md): Gets the site within the persistent data tree which was hit.
- [SmallPoints](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/smallpoints.md): Gets the small handle points to draw as dragging hints. These mark draggable locations that are not the current target.
- [Tag](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/tag.md): Optional tag for additional hit information. This will need to be populated by some sort of value when sub-objects are dragged.
- [Tree](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/tree.md): Gets the persistent data at the moment of ray hit.

## Methods

- [AddCurves](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/addcurves.md): (2 overloads) Add one or more curves at the given kind. [PointKind.None](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pointkind.md) adds nothing.
- [AddPoints](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.draghit/addpoints.md): Add one or more handle points at the given kind. [PointKind.None](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pointkind.md) adds nothing.
