다음을 통해 공유


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

See Also

Reference

SPLimitedWebPartManager Class

SPLimitedWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace