Progress® Telerik® Reporting R1 2021
ElementTreeHelper.GetChildByName Method
Returns the first immediate child layout element within a specified parent having a specified name.
Namespace:
Telerik.Reporting.ProcessingAssembly: Telerik.Reporting (in Telerik.Reporting.dll)
Syntax
Parameters
- parent
- Type: Telerik.Reporting.ProcessingLayoutElement
The parent element to search within. - name
- Type: SystemString
The name to search for.
Return Value
Type: LayoutElementLayout element having the specified name and parent.
Examples
This example shows how to get a child by name in a ItemDataBinding event handler.
void DetailSection_ItemDataBinding_Using_GetChildByName(object sender, EventArgs e) { Processing.DetailSection processingInstance = (Processing.DetailSection)sender; Processing.LayoutElement child = Processing.ElementTreeHelper.GetChildByName(processingInstance, "textBox1"); Processing.VisualElement visualChild = child as Processing.VisualElement; if (null != visualChild) { visualChild.Style.BackgroundColor = System.Drawing.Color.Blue; } }
Version Information
Supported in: 1.0.1