# InsertElement(int, GraphElement)

> Inserts the specified GraphElement at the specified index in this StackNode.

## Definition

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

```csharp
public void InsertElement(int index, GraphElement element)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index where the specified GraphElement will be inserted.**** (\[GraphElement]\(/engine/6000.5/script-reference/unityeditor/experimental/graphview/graphelement)): The GraphElement to insert.
