WebPartZoneInstance AddWebPart Method (Int32, Int32)Kentico 8.1 API Reference
Adds a web part instance of a specified type to the webparts.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

webPartId
Type: OnlineSystem Int32
Web part code name
position (Optional)
Type: OnlineSystem Int32
The position of the web part in the target zone

Return Value

Type: WebPartInstance
See Also