ControlsHelper.GetParentProperty<ParentControlType, PropertyType> Method |
Gets property value from parent control
Namespace: CMS.ExtendedControlsAssembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 8.2.23
Syntaxpublic static PropertyType GetParentProperty<ParentControlType, PropertyType>(
Control control,
Func<ParentControlType, PropertyType> propFunc,
PropertyType defaultValue
)
where ParentControlType : Control
Parameters
- control
- Type: System.Web.UI.Control
Control - propFunc
- Type: System.Func<ParentControlType, PropertyType>
Function that gets property value - defaultValue
- Type: PropertyType
Default property value if no suitable parent control found
Type Parameters
- ParentControlType
- PropertyType
Return Value
Type:
PropertyType
See Also