Click or drag to resize
PageTemplateInstanceAddWidget Method
Adds the widget instance to the specified zone.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public WebPartInstance AddWidget(
	string zoneId,
	int widgetId
)

Parameters

zoneId
Type: SystemString
Zone ID
widgetId
Type: SystemInt32
Web part ID

Return Value

Type: WebPartInstance
See Also