Click or drag to resize
PortalHelperCollectControlsOfTypeControlType Method
Returns the list of all controls matching the given control type

Namespace: CMS.PortalControls
Assembly: CMS.PortalControls (in CMS.PortalControls.dll) Version: 9.0.0
Syntax
C#
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: ListControlType
See Also