# Sandbox.ComponentList

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`

## Properties

- [`Count`](/api/Sandbox.ComponentList/Count): Amount of components - including disabled

## Methods

- [`Create`](/api/Sandbox.ComponentList/Create): Add a component of this type
- [`FirstOrDefault`](/api/Sandbox.ComponentList/FirstOrDefault)
- [`ForEach`](/api/Sandbox.ComponentList/ForEach)
- [`Get`](/api/Sandbox.ComponentList/Get): Get a component of this type
- [`GetAll`](/api/Sandbox.ComponentList/GetAll): Get all components, including disabled ones
- [`GetInAncestors`](/api/Sandbox.ComponentList/GetInAncestors): Find component on this gameobject's ancestors
- [`GetInAncestorsOrSelf`](/api/Sandbox.ComponentList/GetInAncestorsOrSelf): Find component on this gameobject's ancestors or on self
- [`GetInChildren`](/api/Sandbox.ComponentList/GetInChildren): Find component on this gameobject's immediate children
- [`GetInChildrenOrSelf`](/api/Sandbox.ComponentList/GetInChildrenOrSelf): Find component on this gameobject's immediate children or on self
- [`GetInDescendants`](/api/Sandbox.ComponentList/GetInDescendants): Find component on this gameobject's decendants
- [`GetInDescendantsOrSelf`](/api/Sandbox.ComponentList/GetInDescendantsOrSelf): Find component on this gameobject's decendants or on self
- [`GetInParent`](/api/Sandbox.ComponentList/GetInParent): Find component on this gameobject's parent
- [`GetInParentOrSelf`](/api/Sandbox.ComponentList/GetInParentOrSelf): Find component on this gameobject's parent or on self
- [`GetOrCreate`](/api/Sandbox.ComponentList/GetOrCreate): Find this component, if it doesn't exist - create it.
- [`Move`](/api/Sandbox.ComponentList/Move): Move the position of the component in the list by delta (-1 means up one, 1 means down one)
- [`TryGet`](/api/Sandbox.ComponentList/TryGet): Try to get this component
