# GH_Constraint enum

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public enum GH_Constraint
```

Constraints used during UI dragging operations.

## Values

| Name | Value | Description |
| --- | --- | --- |
| None | 0 | No constraint is placed on drag direction. |
| Vertical | 1 | Dragging is constrainted to the vertical direction. |
| Horizontal | 2 | Dragging is constrainted to the horizontal direction. |
