WebPartZoneInstance AddWebPart Method (Int32, Int32)Kentico 8.0 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.0.5239.26125)

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