# ScaleOptions.Create method

Creates scale options that match the specified scale type.

**Namespace:** [`Eremex.AvaloniaUI.Charts`](../index.md)  
**Assembly:** `Eremex.Avalonia.Charts.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public static ScaleOptions Create(ScaleType type)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| type | [`ScaleType`](../ScaleType.md) | The scale type of the created options. |

## Returns

| type | description |
| --- | --- |
| [`ScaleOptions`](../ScaleOptions.md) | The scale options for the scale type. |

## Exceptions

| exception | condition |
| --- | --- |
| ArgumentOutOfRangeException | The scale type is not supported. |

## See Also

* enum [ScaleType](../ScaleType.md)
* class [ScaleOptions](../ScaleOptions.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
