# Sandbox.ComponentList.GetInAncestors

```csharp
T GetInAncestors(bool includeDisabled = False)
```

Find component on this gameobject's ancestors

### Parameters

- `includeDisabled` (`bool`), default `False`

### Returns

`T`

Declared in [Sandbox.ComponentList](/api/Sandbox.ComponentList).
Assembly: `Sandbox.Engine`.
