PortalHelperCollectControlsOfTypeControlType Method |
Returns the list of all controls matching the given control type
Namespace: CMS.PortalEngine.Web.UIAssembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax public static List<ControlType> CollectControlsOfType<ControlType>(
Control parent,
bool collectChild = false
)
where ControlType : Control
Parameters
- parent
- Type: System.Web.UIControl
Parent control - collectChild (Optional)
- Type: SystemBoolean
If true, also child controls under controls of the given type are collected
Type Parameters
- ControlType
Return Value
Type:
ListControlTypeSee Also