# SetCollapsedElements(IEnumerable<GraphElement>)

> Sets the list of collapsed elements. This method is not meant to be called.

## Definition

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

```csharp
protected void SetCollapsedElements(IEnumerable<GraphElement> collapsedElements)
```

### Parameters

**** (\[IEnumerable\<GraphElement>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): The list of elements to mark as collapsed.

### Remarks

The purpose of this method is to be overridden in a derived class. This method is called when a list of elements are collapsed.
