# ApplyToGraphView(GraphView, Blackboard)

> Applies the list of selected elements to a graph view.

## Definition

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

```csharp
public void ApplyToGraphView(GraphView graphView, Blackboard blackboard)
```

### Parameters

**** (\[GraphView]\(/engine/6000.7/script-reference/unityeditor/experimental/graphview/graphview)): The graph view to apply the selection to.**** (\[Blackboard]\(/engine/6000.7/script-reference/unityeditor/experimental/graphview/blackboard)): The graph view blackboard or null if none.

### Remarks

This method clears the current selection in the graph view, and selects the graph view or blackboard elements indicated by [GraphSelection.elements](/engine/6000.7/script-reference/unityeditor/experimental/graphview/graphselection/elements.md).
