ViewCollection

The children of a Panel, raising a change callback so the panel can relayout.
public sealed class ViewCollection : IEnumerable<View>

Properties

Count

The number of children.

Type: int

public int Count { get; }

this

The child at index.

Type: View

public View this[int index] { get; }
ParameterSummary
int indexThe zero-based index.

Methods

Add

Adds a child to the panel.

public void Add(
  View view)
ParameterSummary
View viewThe child to add.

Clear

Removes all children.

public void Clear()

GetEnumerator

Returns an enumerator over the children.

public IEnumerator<View> GetEnumerator()

Returns

Remove

Removes a child from the panel.

public bool Remove(
  View view)
ParameterSummary
View viewThe child to remove.

Returns

  • bool: true if the child was present and removed.