SPLimitedWebPartManager.MoveWebPart Method
Moves a Web Part from one Web Part Zone to another, or can be used to change the relative ordering of a Web Part within a Zone.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub MoveWebPart ( _
webPart As WebPart, _
zoneID As String, _
zoneIndex As Integer _
)
'Usage
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
Dim zoneID As String
Dim zoneIndex As Integer
instance.MoveWebPart(webPart, zoneID, _
zoneIndex)
public void MoveWebPart(
WebPart webPart,
string zoneID,
int zoneIndex
)
Parameters
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
- zoneID
Type: System.String
- zoneIndex
Type: System.Int32