Click or drag to resize
PortalHelper.CollectPlaceholders Method
Returns the hashtable of all the CMSPagePlaceholders within the given control (searches only for the level 0 placeholders, does not search recursively in the placeholders).

Namespace: CMS.PortalControls
Assembly: CMS.PortalControls (in CMS.PortalControls.dll) Version: 8.2.23
Syntax
C#
public static List<CMSPagePlaceholder> CollectPlaceholders(
	Control parent,
	bool collectChild = false
)

Parameters

parent
Type: System.Web.UI.Control
Parent control
collectChild (Optional)
Type: System.Boolean
If true, also child placeholders are collected

Return Value

Type: List<CMSPagePlaceholder>
See Also