Interface ILayoutElementContainer
Represents an item that may contain other LayoutElements
Namespace: Telerik.Reporting.Processing
Assembly: Telerik.Reporting.dll
Syntax
public interface ILayoutElementContainer
Properties
Children
Gets a read-only enumeration containing the immediate children of the current container.
Declaration
IEnumerable<LayoutElement> Children { get; }
Property Value
System.Collections.Generic.IEnumerable<LayoutElement>
|
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;
}
}
}
}
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