Click or drag to resize
PageTemplateInstance.AddWidget 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: System.String
Zone ID
widgetId
Type: System.Int32
Web part ID

Return Value

Type: WebPartInstance
See Also