PageTemplateInstanceAddWebPart Method (String, Int32, Int32) |
Adds the web part instance to the specified zone
Namespace: CMS.PortalEngineAssembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 10.0.0
Syntax public WebPartInstance AddWebPart(
string zoneId,
int webPartId,
int position = -1
)
Parameters
- zoneId
- Type: SystemString
Zone ID - webPartId
- Type: SystemInt32
Web part ID - position (Optional)
- Type: SystemInt32
The position of the web part in the target zone
Return Value
Type:
WebPartInstanceSee Also