Kentico 11 API Reference
Kentico 11 API Reference
Namespaces
CMS.PortalEngine 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
GetXmlElement Method
GetZone Method
GetZonesXML Method
LoadFromXml Method
LoadFromXmlElement Method
LoadVariants 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: 11.0.0
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) 2017 Kentico Software
Send comments on this topic to
support@kentico.com