Kentico 8.2 API Reference
Kentico 8.2 API Reference
Namespaces
CMS.PortalEngine
PageTemplateInstance Class
PageTemplateInstance Methods
AddWebPart Method
AddWidget Method
AddZone Method
Clone Method
CloneWebPart Method
CombineWith Method
ContainsZones Method
EnsureZone Method
GetNestedZones Method
GetUniqueWebPartId Method
GetWebPart Method
GetZone Method
GetZonesXML Method
LoadVariants Method
LoadZones Method
MoveAllWebParts Method
MoveWebPart Method
MoveWebPartDown Method
MoveWebPartToNextZone Method
MoveWebPartToPreviousZone Method
MoveWebPartUp Method
RemoveZone Method
ZoneExists Method
PageTemplateInstance
AddWidget Method
Adds the widget instance to the specified zone.
Namespace:
CMS.PortalEngine
Assembly:
CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.2.23
Syntax
C#
Copy
public
WebPartInstance
AddWidget
(
string
zoneId
,
int
widgetId
)
Parameters
zoneId
Type:
System
String
Zone ID
widgetId
Type:
System
Int32
Web part ID
Return Value
Type:
WebPartInstance
See Also
Reference
PageTemplateInstance Class
CMS.PortalEngine Namespace
Copyright (c) 2015 Kentico Software
Send comments on this topic to
support@kentico.com