Panel.ChildView struct Core

The children of a panel, read only: an index, a count and a foreach that takes no enumerator from the heap - the paths that read them run every frame.

public readonly struct ChildView
Namespace
ArionUI.Presentation.Controls
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease
Nested in
Panel

Properties

Count

public int Count { get; }

How many children there are.

this[]

public Control this[int index] { get; }

The child at index, in tree order.

Methods

GetEnumerator

public List<Control>.Enumerator GetEnumerator();

The children in tree order, without an allocation.