# SnappingSettings 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 sealed class SnappingSettings
```

Collects all snapping constraint settings.

## Constructors

- [SnappingSettings](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/ctor.md): Create a new settings instance.

## Properties

- [AlignBottomEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/alignbottomedges.md): Gets or sets whether the bottom edge of a target box is snapped to other nearby bottom edges.
- [AlignLeftEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/alignleftedges.md): Gets or sets whether the left edge of a target box is snapped to other nearby left edges.
- [AlignMiddles](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/alignmiddles.md): Gets or sets whether the horizontal centre of a target box is snapped to other nearby horizontal centres.
- [AlignRightEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/alignrightedges.md): Gets or sets whether the right edge of a target box is snapped to other nearby right edges.
- [AlignTopEdges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/aligntopedges.md): Gets or sets whether the top edge of a target box is snapped to other nearby top edges.
- [AlignWires](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/alignwires.md): Gets or sets whether to straighten wires between objects.
- [Colour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/colour.md): Gets or sets the feedback hint colour.
- [Current](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/current.md): (static) Gets the current user snapping settings.
- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/default.md): (static) Gets the factory default snapping settings.
- [EdgeRadius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/edgeradius.md): Gets or sets the search radius for edge and gap alignment.
- [Feedback](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/feedback.md): Gets or sets whether to draw visual feedback when snapping.
- [HorizontalGapSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/horizontalgapsize.md): Gets or sets the gap size to enforce when snapping horizontal spacing.
- [Rules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/rules.md): Gets all the active rules.
- [SpaceHorizontalGaps](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/spacehorizontalgaps.md): Gets or sets whether the gaps between the left and right edges of nearby boxes is snapped to a specific size.
- [SpaceVerticalGaps](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/spaceverticalgaps.md): Gets or sets whether the gaps between the top and bottom edges of nearby boxes is snapped to a specific size.
- [VerticalGapSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/verticalgapsize.md): Gets or sets the gap size to enforce when snapping vertical spacing.
- [WireRadius](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/wireradius.md): Gets or sets the search radius for wire alignment.

## Methods

- [SettingsControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/settingscontrol.md): (static)
- [SettingsForm](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/settingsform.md): (static)
- [WithFeedback](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/withfeedback.md): Modify these settings to have new feedback states.
- [WithoutRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/withoutrules.md): Modify these settings to exclude the given rules.
- [WithRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.canvas.snappingsettings/withrules.md): Modify these settings to include the given rules.
