Progress® Telerik® Reporting R3 2017

ILayoutElementContainerChildren Property

Gets a read-only enumeration containing the immediate children of the current container.

Namespace:  Telerik.Reporting.Processing
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

IEnumerable<LayoutElement> Children { get; }

Property Value

Type: IEnumerableLayoutElement

Examples

This example shows how to access all children of a container in a ItemDataBinding event handler.
void DetailSection_ItemDataBinding_Using_ILayoutElementContainer_Children(object sender, EventArgs e)
{
    Processing.DetailSection processingInstance = (Processing.DetailSection)sender;
    Processing.ILayoutElementContainer processingContainer = processingInstance as Processing.ILayoutElementContainer;
    if (null != processingContainer)
    {
        foreach (Processing.LayoutElement processingChild in processingContainer.Children)
        {
            Processing.VisualElement visualChild = processingChild as Processing.VisualElement;
            if (null != visualChild)
            {
                visualChild.Style.BackgroundColor = System.Drawing.Color.Blue;
            }
        }
    }
}

See Also