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

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 9.0.0
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