# ContentResizeBehaviour enum

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

```cs
public enum ContentResizeBehaviour
```

Enumerates the possible content navigation behaviours during control resize events.

## Values

| Name | Value | Description |
| --- | --- | --- |
| RetainOrigin | 0 | The origin point remains the same, this is almost never what you want. |
| RetainCentre | 1 | The content point in the centre of the control remains the same. Zooming is unaffected. |
| RetainVisible | 2 | The visible content frame is kept fully in view, zooming will be changed if necessary. |
