# Children()

> Returns the elements from its contentContainer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public IEnumerable<VisualElement> Children()
```

### Returns

| Type                                                                                                           | Description |
| -------------------------------------------------------------------------------------------------------------- | ----------- |
| [IEnumerable\<VisualElement>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) |             |

### Remarks

The elements returned by this method are the logical children of the element. This might differ from the physical children of the element if the element's contentContainer property doesn't return the element itself. For more information, refer to [\_contentContainer](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentcontainer.md).

To access the physical children of the element, use [VisualElement.Hierarchy.Children](/engine/6000.7/script-reference/unityengine/uielements/visualelement/hierarchy/children.md).

Additional Resources: [\_contentContainer](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentcontainer.md), \_hierarchy
