WebPartDefinition.MoveWebPartTo メソッド
Moves the Web Part to a different location on a Web Part Page.
名前空間: Microsoft.SharePoint.Client.WebParts
アセンブリ: Microsoft.SharePoint.Client.Silverlight (Microsoft.SharePoint.Client.Silverlight.dll 内); Microsoft.SharePoint.Client.Phone (Microsoft.SharePoint.Client.Phone.dll 内) Microsoft.SharePoint.Client (Microsoft.SharePoint.Client.dll 内)
構文
'宣言
Public Sub MoveWebPartTo ( _
zoneID As String, _
zoneIndex As Integer _
)
'使用
Dim instance As WebPartDefinition
Dim zoneID As String
Dim zoneIndex As Integer
instance.MoveWebPartTo(zoneID, zoneIndex)
public void MoveWebPartTo(
string zoneID,
int zoneIndex
)
パラメーター
zoneID
型: System.StringThe name of the Web Part zone to which to move the Web Part.
Each Web Part zone must have a unique name. It must not be null 参照 (Visual Basic のNothing ). It must not be empty. Its length must be equal to or less than 64.
zoneIndex
型: System.Int32A Web Part zone index that specifies the position at which the Web Part is to be moved within the destination Web Part zone.
The zoneIndex parameter for this method follows the same behavior as the zoneIndex parameter for LimitedWebPartManager.AddWebPart.
The zoneIndex parameter for LimitedWebPartManager.AddWebPart.method is a Web Part zone index that specifies the position at which the Web Part will be inserted within the Web Part zone. The new Web Part must be inserted directly before the existing Web Part with the lowest Web Part zone index greater than or equal to zoneIndex. If zoneIndex is greater than the index of all Web Parts in the zone or there are no Web Parts in the Web Part zone, then the new Web Part must be inserted at the end of the Web Part zone. Its value must be equal to or greater than 0.
注釈
If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.