Click or drag to resize
PageTemplateInstanceMoveWebPart Method
Moves the web part between two zones

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public void MoveWebPart(
	WebPartInstance webPart,
	WebPartZoneInstance sourceZoneInstance,
	WebPartZoneInstance targetZoneInstance,
	string targetZoneId,
	int targetPosition
)

Parameters

webPart
Type: CMS.PortalEngineWebPartInstance
Web part to move
sourceZoneInstance
Type: CMS.PortalEngineWebPartZoneInstance
Source zone
targetZoneInstance
Type: CMS.PortalEngineWebPartZoneInstance
Target zone instance
targetZoneId
Type: SystemString
Target zone ID
targetPosition
Type: SystemInt32
Target position
See Also