PageTemplateInstanceAddWebPart Method (String, WebPartInstance, Int32) |
Adds the web part instance to the specified zone.
Namespace: CMS.PortalEngineAssembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax public WebPartInstance AddWebPart(
string zoneId,
WebPartInstance webPart,
int position = -1
)
Parameters
- zoneId
- Type: SystemString
Zone ID - webPart
- Type: CMS.PortalEngineWebPartInstance
Web part - position (Optional)
- Type: SystemInt32
Position index
Return Value
Type:
WebPartInstanceRemarks Returns a new instance of web part if the given web part is present within it's parent zone
See Also