Table of Contents

Method ForEachChild

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ForEachChild<T>(Action<T>)

Performs some action for the each child of the control.

public virtual void ForEachChild<T>(Action<T> action) where T : Control

Parameters

action Action<T>

Specifies action which will be called for the each child.

Type Parameters

T

Specifies type of the child control.

ForEachChild(Action<Control>, bool)

Performs some action for the each child of the control.

public virtual void ForEachChild(Action<Control> action, bool recursive = false)

Parameters

action Action<Control>

Specifies action which will be called for the each child.

recursive bool

Whether to call action for all child controls recursively.