Interface
ILayoutElementContainer

Represents an item that may contain other LayoutElements

Definition

Namespace:Telerik.Reporting.Processing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public interface ILayoutElementContainer

Properties

Children

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

Declaration

cs-api-definition
IEnumerable<LayoutElement> Children { get; }

Property Value

IEnumerable<LayoutElement>

Example

This example shows how to access all children of a container in a ItemDataBinding event handler.

cs
      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;
			}
		}
	}
}
vb
Private Sub DetailSection_ItemDataBinding_Using_ILayoutElementContainer_Children(sender As Object, e As EventArgs)
    Dim processingInstance As Processing.DetailSection = DirectCast(sender, Processing.DetailSection)
    Dim processingContainer As Processing.ILayoutElementContainer = TryCast(processingInstance, Processing.ILayoutElementContainer)
    If processingContainer IsNot Nothing Then
        For Each processingChild As Processing.LayoutElement In processingContainer.Children
            Dim visualChild As Processing.VisualElement = TryCast(processingChild, Processing.VisualElement)
            If visualChild IsNot Nothing Then
                visualChild.Style.BackgroundColor = System.Drawing.Color.Blue
            End If
        Next
    End If
End Sub 
In this article
DefinitionPropertiesChildren
Not finding the help you need?
Contact Support