# IsSelected(VisualElement)

> The GraphElement is currently selected in specific container.

## Definition

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

```csharp
public virtual bool IsSelected(VisualElement selectionContainer)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.5/script-reference/unityengine/uielements/visualelement)): The container.

### Returns

| Type                                                          | Description                                                            |
| ------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the GraphElement is selected. Returns false otherwise. |
