# Editor.Widget.IsAncestorOf

```csharp
bool IsAncestorOf(Widget child)
```

Returns whether or not the specified Widget is an ancestor of this Widget.

### Parameters

- `child` (`Widget`)

### Returns

`bool`

Declared in [Editor.Widget](/api/Editor.Widget).
Assembly: `Sandbox.Tools`.
