# SnappingAction class

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

```cs
public class SnappingAction
```

A single resolved snapping action.

## Constructors

- [SnappingAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/ctor.md): Create a new snapping action. This is somewhat tricky, consider using one of the static creation methods.

## Properties

- [LabelAnchor](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/labelanchor.md): Gets the text anchor for the label with respect to the point.
- [LabelPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/labelpoint.md): Gets the anchor point for the label text.
- [LabelText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/labeltext.md): Gets the name of this action.
- [Lines](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/lines.md): Gets all the lines that make up the snapping feedback graphics.
- [Magnitude](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/magnitude.md): The sum of the absolute values of ΔX and ΔY.
- [ΔX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/x.md): Gets the motion in X required to make the snap happen.
- [ΔY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/y.md): Gets the motion in Y required to make the snap happen.

## Methods

- [CreateBottomAlignAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createbottomalignaction.md): (static) Create a snapping action for bottom box alignment.
- [CreateCentreAlignAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createcentrealignaction.md): (static) Create a snapping action for horizontal centre box alignment.
- [CreateHorizontalGapActionAbove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createhorizontalgapactionabove.md): (static) Create a snapping action for horizontal gap spacing with the feedback on top.
- [CreateHorizontalGapActionBelow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createhorizontalgapactionbelow.md): (static) Create a snapping action for horizontal gap spacing with the feedback underneath.
- [CreateLeftAlignAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createleftalignaction.md): (static) Create a snapping action for left box alignment.
- [CreateRightAlignAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createrightalignaction.md): (static) Create a snapping action for right box alignment.
- [CreateStraightenWireAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createstraightenwireaction.md): (static) Create a wire straightening action.
- [CreateTopAlignAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createtopalignaction.md): (static) Create a snapping action for left box alignment.
- [CreateVerticalGapActionOnLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createverticalgapactiononleft.md): (static) Create a snapping action for vertical gap spacing with the label on the left.
- [CreateVerticalGapActionOnRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/createverticalgapactiononright.md): (static) Create a snapping action for vertical gap spacing with the label on the right.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/draw.md): Draw this action in a graphics context.
- [HorizontalOrthoAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/horizontalorthoaction.md): (static) Create a horizontal ortho constraint. This one has no deflection, but it does have feedback.
- [SmallerMagnitude](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/smallermagnitude.md): (static) Return the action with the smaller magnitude.
- [VerticalOrthoAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingaction/verticalorthoaction.md): (static) Create a vertical ortho constraint. This one has no deflection, but it does have feedback.
