# SnappingRule enum

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
[Flags]
public enum SnappingRule
```

Enumerates the possible snapping edges.

## Values

| Name | Value | Description |
| --- | --- | --- |
| None | 0 |  |
| AlignLeftEdges | 1 | Align left edges of vertically adjacent objects. |
| AlignMiddles | 2 | Align the middles of vertically adjacent objects. |
| AlignRightEdges | 4 | Align right edges of vertically adjacent objects. |
| AlignTopEdges | 8 | Align top edges of horizontally adjacent objects. |
| AlignBottomEdges | 16 | Align bottom edges of horizontally adjacent objects. |
| SpaceVerticalGaps | 32 | Separate vertically adjacent objects with a small gap. |
| SpaceHorizontalGaps | 64 | Separate horizontally adjacent objects with a large space. |
| AlignWires | 128 | Vertically move objects so that wires become horizontal. |
| Default | 253 |  |
| All | 255 |  |
