# Editor.DockManager.FindDockWidget

## Overload 1

```csharp
DockWidget FindDockWidget(string name)
```

Find an existing dock widget by name. Returns null if not found.

### Parameters

- `name` (`string`)

### Returns

`DockWidget`

## Overload 2

```csharp
DockWidget FindDockWidget(Widget widget)
```

Find the dock widget containing the given widget. Returns null if it isn't docked.

### Parameters

- `widget` (`Widget`)

### Returns

`DockWidget`

Declared in [Editor.DockManager](/api/Editor.DockManager).
Assembly: `Sandbox.Tools`.
