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

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 11.0.0
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