# Sandbox.UI.CurveEditor.ApplyPreset

```csharp
void ApplyPreset(Curve preset, bool includeRanges = False)
```

Replace the active curve's keys, optionally applying the preset's axis ranges too.

### Parameters

- `preset` (`Curve`)
- `includeRanges` (`bool`), default `False`

Declared in [Sandbox.UI.CurveEditor](/api/Sandbox.UI.CurveEditor).
Assembly: `Sandbox.Engine`.
