# ComputeElementBounds(ref Rect, List<GraphElement>, MinSizePolicy)

> Calculates the bounds of a list of graph elements.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.7/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

## ComputeElementBounds(Rect, List\<GraphElement>, MinSizePolicy)

```csharp
public static bool ComputeElementBounds(ref Rect pos, List<GraphElement> elements, Placemat.MinSizePolicy ensureMinSize = MinSizePolicy.EnsureMinSize)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): The position, if computed.**** (\[List\<GraphElement>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The list of elements.**** (\[MinSizePolicy]\(/engine/6000.7/script-reference/unityeditor/experimental/graphview/placemat/minsizepolicy)): Whether to consider the minimum size of the placemat while computing the bounds.

### Returns

| Type                                                          | Description                                               |
| ------------------------------------------------------------- | --------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if bounds were computed, or false otherwise. |
