# StyleRatio

> Creates a new Ratio from a float.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## StyleRatio(Ratio)

Creates a new Ratio from a float.

```csharp
public StyleRatio(Ratio value)
```

### Parameters

**** (\[Ratio]\(/engine/6000.5/script-reference/unityengine/uielements/ratio)):&#x20;

## StyleRatio(StyleKeyword)

Creates a new Ratio from a Keywords.

```csharp
public StyleRatio(StyleKeyword keyword)
```

### Parameters

**** (\[StyleKeyword]\(/engine/6000.5/script-reference/unityengine/uielements/stylekeyword)):&#x20;
