# CalcMinMaxWidth(GUIContent, out float, out float)

> Calculate the minimum and maximum widths for this style rendered with content.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

## CalcMinMaxWidth(GUIContent, float, float)

```csharp
public void CalcMinMaxWidth(GUIContent content, out float minWidth, out float maxWidth)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.5/script-reference/unityengine/guicontent)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Remarks

Used by [GUILayout](/engine/6000.5/script-reference/unityengine/guilayout.md) to handle word-wrapping elements correctly.
